CL_Event_ButtonRelease3
Event callback interface for button releases.
Overview
This interface is used to intercept button releases from the keyboard, mouse and joystick. To use this interface, inherit it and implement on_button_release(). Then add it to a CL_EventChain_ButtonRelease chain. The topmost chain is located in CL_Input. ClanLib has some common case inheritance of most of our events, and you may want to have a look at them before using this interface. One example is the CL_InputBuffer class, which converts button events into a poll queue.
Inherited from public virtual CL_Event
Class members
- virtual
~CL_Event_ButtonRelease()
- virtual bool
on_button_release( -
CL_InputDevice *device, const CL_Key &key)
Members with descriptions
- virtual
~CL_Event_ButtonRelease() -
Description:
- virtual bool
on_button_release( -
CL_InputDevice *device, const CL_Key &key)
Parameters: device - Input device where the event originates from. key - The key/button that triggered the event.
Description:
Called when a button release event occours.
Return value:
If true is returned, the event chain that called this function will break the chain (stop sending it the remaining listeners on the chain.