advancedEventsExample
About advancedEventsExample

Learning Objectives
This Example demonstrates how you can register custom events in openFrameworks, in an iOS application.
After studying this example, you'll understand how to create an event object, and bind events to it.
In the code, pay attention to:
- The custom object
eventsObjectand its correspondingnewFloatEvent()andnewIntEvent(). ofAddListener, which allows you to bind the events in the customeventsObjectto methods in yourofApp.mm- The touchEvent allows you to toggle these custom events on and off.
Expected Behavior
When launching this app, you should see a screen with
- Instructional Text
- After tapping, you can toggle on/off event information which is drawn to the screen every time the custom events are triggered.
Instructions for use:
- Tap the screen to toggle whether or not the events are triggered (and thereby drawn on screen).
Other classes used in this file
This Example uses the following classes:
- ofxiOS (for compiling openFrameworks to an Apple iOS device)
- ofEvents (for ofEventArgs and ofEvents)