ofDocsdocumentation events ofCoreEvents

ofCoreEvents

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


disable( )

void disable()

enable( )

void enable()

getFrameNum( )

uint64_t getFrameNum()

getFrameRate( )

float getFrameRate()

getKeyPressed( ... )

bool getKeyPressed(int key)

getLastFrameTime( )

double getLastFrameTime()

getModifiers( )

int getModifiers()

getMousePressed( ... )

bool getMousePressed(int button)

getMouseX( )

int getMouseX()

getMouseY( )

int getMouseY()

getPreviousMouseX( )

int getPreviousMouseX()

getPreviousMouseY( )

int getPreviousMouseY()

getTargetFrameRate( )

float getTargetFrameRate()

notifyDragEvent( ... )

bool notifyDragEvent(ofDragInfo info)

notifyDraw( )

bool notifyDraw()

notifyExit( )

bool notifyExit()

notifyKeyEvent( ... )

bool notifyKeyEvent(ofKeyEventArgs &keyEvent)

notifyKeyPressed( ... )

bool notifyKeyPressed(int key, int keycode, int scancode, uint32_t codepoint)

notifyKeyReleased( ... )

bool notifyKeyReleased(int key, int keycode, int scancode, uint32_t codepoint)

notifyMouseDragged( ... )

bool notifyMouseDragged(int x, int y, int button)

notifyMouseEntered( ... )

bool notifyMouseEntered(int x, int y)

notifyMouseEvent( ... )

bool notifyMouseEvent(ofMouseEventArgs &mouseEvent)

notifyMouseExited( ... )

bool notifyMouseExited(int x, int y)

notifyMouseMoved( ... )

bool notifyMouseMoved(int x, int y)

notifyMousePressed( ... )

bool notifyMousePressed(int x, int y, int button)

notifyMouseReleased( ... )

bool notifyMouseReleased(int x, int y, int button)

notifyMouseScrolled( ... )

bool notifyMouseScrolled(int x, int y, float scrollX, float scrollY)

notifySetup( )

bool notifySetup()

notifyTouchCancelled( ... )

void notifyTouchCancelled(int x, int y, int touchID)

notifyTouchDoubleTap( ... )

void notifyTouchDoubleTap(int x, int y, int touchID)

notifyTouchDown( ... )

void notifyTouchDown(int x, int y, int touchID)

notifyTouchEvent( ... )

void notifyTouchEvent(ofTouchEventArgs &touchEvent)

notifyTouchMoved( ... )

void notifyTouchMoved(int x, int y, int touchID)

notifyTouchUp( ... )

void notifyTouchUp(int x, int y, int touchID)

notifyUpdate( )

bool notifyUpdate()

notifyWindowMoved( ... )

bool notifyWindowMoved(int x, int y)

notifyWindowResized( ... )

bool notifyWindowResized(int width, int height)

ofCoreEvents( )

ofCoreEvents()

setFrameRate( ... )

void setFrameRate(int _targetRate)

setTimeModeFiltered( ... )

void setTimeModeFiltered(float alpha)

setTimeModeFixedRate( ... )

void setTimeModeFixedRate(uint64_t nanosecsPerFrame)

setTimeModeSystem( )

void setTimeModeSystem()