Sirikata
|
Base class for keyboard/mouse/joystick button events. More...
#include <InputEvents.hpp>
Public Member Functions | |
virtual | ~ButtonEvent () |
ButtonEvent (const InputDevicePtr &dev, KeyEvent event, unsigned int key, Modifier mod) | |
bool | pressed () |
bool | activelyPressed () |
Public Attributes | |
KeyEvent | mEvent |
If the event is ButtonPressed or ButtonReleased. | |
KeyButton | mButton |
Which scancode (keyboard) | |
Modifier | mModifier |
OR of all modifier codes (defined by SDL) |
Base class for keyboard/mouse/joystick button events.
virtual Sirikata::Input::ButtonEvent::~ButtonEvent | ( | ) | [inline, virtual] |
Sirikata::Input::ButtonEvent::ButtonEvent | ( | const InputDevicePtr & | dev, |
KeyEvent | event, | ||
unsigned int | key, | ||
Modifier | mod | ||
) | [inline] |
bool Sirikata::Input::ButtonEvent::activelyPressed | ( | ) | [inline] |
References Sirikata::Input::KEY_DOWN, and Sirikata::Input::KEY_PRESSED.
bool Sirikata::Input::ButtonEvent::pressed | ( | ) | [inline] |
Which scancode (keyboard)
If the event is ButtonPressed or ButtonReleased.
OR of all modifier codes (defined by SDL)