blip
0.1
|
An abstract base class for user input events. More...
#include <InputEvent.hpp>
Public Types | |
enum | Source { Source_Unknown = -1, Source_Keyboard = 1, Source_DPad = 2, Source_GamePad = 3, Source_TouchScreen = 4, Source_Mouse = 5, Source_Stylus = 6, Source_Trackball = 7, Source_TouchPad = 8, Source_TouchNavigation = 9, Source_Joystick = 10, Source_Any = 0 } |
User input event sources. More... | |
enum | Class { Class_Unknown = - 1, Class_None = 0, Class_Button = 1, Class_Pointer = 2, Class_Navigation = 3, Class_Position = 4, Class_Joystick = 5 } |
Input event classes. More... | |
enum | Type { Type_Key, Type_Motion, Type_Sensor, Type_Timer } |
Event types. More... | |
Public Member Functions | |
virtual | ~InputEvent () |
Destructor. More... | |
int32_t | getDeviceID () const |
Get the ID of the input device which is the source of this event. More... | |
virtual Source | getSource () const |
Get the source of this event. More... | |
Class | getClass () const |
Get the class of this event. More... | |
virtual time_ms_t | getEventTime () const =0 |
Get the time at which this event occurred. More... | |
Type | getType () const |
Get the event type. More... | |
An abstract base class for user input events.
enum Class |
enum Source |
|
inherited |
|
virtual |
Destructor.
InputEvent::Class getClass | ( | ) | const |
Get the class of this event.
int32_t getDeviceID | ( | ) | const |
Get the ID of the input device which is the source of this event.
|
pure virtual |
Get the time at which this event occurred.
Implements Event.
Implemented in MotionEvent, and KeyEvent.
|
virtual |
Get the source of this event.
|
inlineinherited |
Get the event type.