IOGether

This class allows you to assign your listeners to devices by:

void add_X_Listener(_X_Listener * listener, bool asHighestPriority)

Where _X_ is the name of the listener (e.g. Key for KeyListener).

The listeners of same type (e.g. all keyboard listeners) will receive an event in order from highest to lowest priority. If one of them returns true ("stop propagation"), the event won't reach the rest of listeners (with the lower priority).

See the main IODevices Module page for details and sample code.