#include <BALL/VIEW/INPUT/buttonEvent.h>
Public Member Functions | |
ButtonEvent (EventsIDs type, InputDeviceDriver *dev, InputDeviceButton cause) | |
ButtonEvent (EventsIDs type, InputDeviceDriver *dev, InputDeviceButton cause, InputDeviceButtons buttons) | |
InputDeviceButton | button () const |
InputDeviceButtons | buttons () const |
Private Attributes | |
InputDeviceButton | cause_ |
InputDeviceButtons | buttons_ |
This event encodes button states of a custom input device. It is emitted when a button is either pressed or released.
BALL::VIEW::ButtonEvent::ButtonEvent | ( | EventsIDs | type, | |
InputDeviceDriver * | dev, | |||
InputDeviceButton | cause | |||
) |
BALL::VIEW::ButtonEvent::ButtonEvent | ( | EventsIDs | type, | |
InputDeviceDriver * | dev, | |||
InputDeviceButton | cause, | |||
InputDeviceButtons | buttons | |||
) |
InputDeviceButton BALL::VIEW::ButtonEvent::button | ( | ) | const [inline] |
Return the button that caused the event.
References cause_.
InputDeviceButtons BALL::VIEW::ButtonEvent::buttons | ( | ) | const [inline] |
Returns the state of the devices buttons when the event was emitted.
References buttons_.
Referenced by buttons().
Referenced by button().