ClanSoft logo
ClanSoft logo

    CL_Event_ButtonPress

Event callback interface for button presses.

Parents: public virtual CL_Event

Description

This interface is used to intercept button presses from the keyboard, mouse and joystick.

To use this interface, inherit it and implement on_button_press(). Then add it to a CL_EventChain_ButtonPress 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.

Class members

virtual ~CL_Event_ButtonPress()
virtual bool on_button_press( CL_InputDevice *device, const CL_Key &key)

See Also

None


Back to index



This page was built using the Perceps documentation system.