CL_EventChain_ButtonPress3
Event sending interface for button presses.
Overview
Event chains are used to route an event to an event listener. The toplevel event chain for button presses, located in CL_Input, is called by ClanLib, but you can also send false events by calling on_button_press() yourself. Note that CL_EventChain_ButtonPress is inheriated from CL_EventButtonPress, so you can add a chain to the toplevel chain. This is useful, if you want to do more advanced routing of events.
Inherited from public CL_EventChain<CL_Event_ButtonPress*>, public CL_Event_ButtonPress
Class members
- virtual bool
on_button_press( -
CL_InputDevice *device, const CL_Key &key)
Members with descriptions
- virtual bool
on_button_press( -
CL_InputDevice *device, const CL_Key &key)
Parameters: device - Input device that triggered the event. key - Key/button that triggered the event.
Description:
Call this function to send a button press event down through the event chain.