class methods
- ofCoreEvents()
- disable()
- enable()
- getFrameNum()
- getFrameRate()
- getKeyPressed()
- getLastFrameTime()
- getModifiers()
- getMousePressed()
- getMouseX()
- getMouseY()
- getPreviousMouseX()
- getPreviousMouseY()
- getTargetFrameRate()
- notifyDragEvent()
- notifyDraw()
- notifyExit()
- notifyKeyEvent()
- notifyKeyPressed()
- notifyKeyReleased()
- notifyMouseDragged()
- notifyMouseEntered()
- notifyMouseEvent()
- notifyMouseExited()
- notifyMouseMoved()
- notifyMousePressed()
- notifyMouseReleased()
- notifyMouseScrolled()
- notifySetup()
- notifyTouchCancelled()
- notifyTouchDoubleTap()
- notifyTouchDown()
- notifyTouchEvent()
- notifyTouchMoved()
- notifyTouchUp()
- notifyUpdate()
- notifyWindowMoved()
- notifyWindowResized()
- setFrameRate()
- setTimeModeFiltered()
- setTimeModeFixedRate()
- setTimeModeSystem()
variables
- int charEvent
- ofEvent< ofEventArgs > draw
- ofEvent< ofEventArgs > exit
- ofEvent fileDragEvent
- ofEvent< ofKeyEventArgs > keyPressed
- ofEvent< ofKeyEventArgs > keyReleased
- ofEvent messageEvent
- ofEvent< ofMouseEventArgs > mouseDragged
- ofEvent< ofMouseEventArgs > mouseEntered
- ofEvent< ofMouseEventArgs > mouseExited
- ofEvent< ofMouseEventArgs > mouseMoved
- ofEvent< ofMouseEventArgs > mousePressed
- ofEvent< ofMouseEventArgs > mouseReleased
- ofEvent< ofMouseEventArgs > mouseScrolled
- ofEvent< ofEventArgs > setup
- ofEvent touchCancelled
- ofEvent touchDoubleTap
- ofEvent touchDown
- ofEvent touchMoved
- ofEvent touchUp
- ofEvent< ofEventArgs > update
- int windowMoved
- ofEvent< ofResizeEventArgs > windowResized
Class for the core events in oF. This is used inside oF to create the global var ofEvents that can be used to register any class to the core events setup, update, draw, exit, keyPressed, keyReleased, mousePressed, mouseReleased, mouseDragged, mouseMoved and windowResize.
To do so use the functions ofAddListener and ofRemoveListener.
For a complete example take a look at the advancedEventsExample
notifyKeyPressed(...)
bool ofCoreEvents::notifyKeyPressed(int key, int keycode, int scancode, uint32_t codepoint)
notifyKeyReleased(...)
bool ofCoreEvents::notifyKeyReleased(int key, int keycode, int scancode, uint32_t codepoint)
notifyMouseScrolled(...)
bool ofCoreEvents::notifyMouseScrolled(int x, int y, float scrollX, float scrollY)
Last updated 星期六, 17 八月 2024 20:46:14 UTC - 99bfb4fd7929e233b87b05758efc36f91505592e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue