OpenGLContext.events.eventhandlermixin

Mix in functionality for Context classes needing event support

Classes

This class provides mix in functionality for contexts needing event support.
Contexts wishing to support particular types of event will store pointers to each of the appropriate manager classes in their EventManagerClasses attribute before calling the EventHandlerMixin.initializeEventManagers() method. The format for EventManagerClasses is [ ("eventType", managerClass), ... ].
Clients wishing to register particular event handlers will use addEventHandler method to register each event handler.
Clients wishing to capture all events of a particular type for a limited duration will use the captureEvents method, passing in a pointer to an event manager which will handle the updates.
The event handler mix in provides a client API for the registration and handling of events.