Skip to content

ofelia

Contributors

People who contribute to this project.

Objects

  • ofBackPressed ofBackPressed detects presses of the Android back button and outputs a bang when one occurs.
  • ofCancelPressed ofCancelPressed listens for Android cancel-button presses and outputs a bang when one occurs.
  • ofDeviceOrientationChanged ofDeviceOrientationChanged listens for device-orientation changes on iOS and outputs a numeric orientation code whenever the orientation changes.
  • ofDragged ofDragged listens for files dragged into the graphics window, outputting a list of their filenames and a separate list containing the x/y drag position.
  • ofDraw ofDraw provides a draw callback for drawing to the graphics window and outputs a bang every frame while the window exists.
  • ofExit ofExit outputs a bang immediately before the app is closed, providing an exit callback for shutdown-related actions.
  • ofGotFocus ofGotFocus detects when an app regains focus on an iOS device and outputs a bang when this occurs.
  • ofGotMemoryWarning ofGotMemoryWarning detects when an iOS app receives a memory warning and outputs a bang.
  • ofKeyPressed ofKeyPressed listens for key-press events and outputs each event as a list.
  • ofKeyReleased ofKeyReleased listens for key-release events and outputs them as either a simplified list containing the key or a full list containing type, key, keycode, scancode, and codepoint.
  • ofLaunchedWithURL ofLaunchedWithURL listens for an iOS app being launched with a URL and outputs that URL as a symbol.
  • ofLostFocus ofLostFocus detects when an app loses focus on an iOS device and outputs a bang.
  • ofMessageReceived ofMessageReceived listens for and outputs messages sent by ofSendMessage, including floats, symbols, and other messages.
  • ofMouseDragged ofMouseDragged listens for mouse-drag events and outputs them as either a full list (type, x, y, button, scrollX, scrollY) or a simplified list (x, y, button).
  • ofMouseEntered ofMouseEntered listens for the mouse cursor entering the window area and outputs the event as a list.
  • ofMouseExited ofMouseExited detects when the mouse cursor leaves the window area and outputs the event as a list.
  • ofMouseMoved ofMouseMoved detects mouse movement and outputs mouse events as a list.
  • ofMousePressed ofMousePressed listens for mouse-press events and outputs them as a list, either full (type, x, y, button, scrollX, scrollY) or simplified (x, y, button).
  • ofMouseReleased ofMouseReleased listens for mouse-release events and outputs each event as a list.
  • ofMouseScrolled ofMouseScrolled detects mouse-wheel scrolling and outputs each event as a list.
  • ofOkPressed ofOkPressed listens for presses of the OK button on Android and outputs a bang when one occurs.
  • ofPause ofPause detects when an app is paused on an Android device and outputs a bang.
  • ofReloadTextures ofReloadTextures listens for when textures need to be reloaded on Android and outputs a bang when this occurs.
  • ofResume ofResume detects when an Android app is resumed and outputs a bang when that occurs.
  • ofSetup ofSetup outputs a bang when the app starts, serving as a setup callback trigger.
  • ofStop ofStop detects when an app is stopped on Android and outputs a bang when that occurs.
  • ofSwipe ofSwipe listens for swipe gestures on Android and outputs the swipe direction and ID as a list.
  • ofTouchCancelled ofTouchCancelled listens for touch-cancellation events and outputs each event as a list.
  • ofTouchDoubleTap ofTouchDoubleTap listens for double-tap touch events and outputs each event as a list.
  • ofTouchDown ofTouchDown listens for touch-down events and outputs each event as a list.
  • ofTouchMoved ofTouchMoved listens for touch-move events and outputs each event as a list.
  • ofTouchUp ofTouchUp listens for touch-up events and outputs them as a list.
  • ofUpdate ofUpdate outputs a bang every frame while the window exists, before ofDraw is called, so patches can update state ahead of drawing.
  • ofWindow ofWindow is a graphics-window handler used to create or destroy a window and change properties such as its position, size, title, window mode, and OpenGL/OpenGL ES version.
  • ofWindowResized ofWindowResized listens for window-resize events and outputs the resized window width and height as a two-float list.
  • ofelia-object ofelia runs Lua scripts in Pure Data, with ofelia define creating an editable script/module and ofelia function wrapping a script as a function.