Deadalus
|
Encapsulates all data relevant to a sampled joystick event. More...
#include <joystick.hh>
Public Member Functions | |
bool | isButton () |
Returns true if this event is the result of a button press. | |
bool | isAxis () |
Returns true if this event is the result of an axis movement. | |
bool | isInitialState () |
Returns true if this event is part of the initial state obtained when the joystick is first connected to. | |
Public Attributes | |
unsigned int | time |
The timestamp of the event, in milliseconds. | |
short | value |
unsigned char | type |
The event type. | |
unsigned char | number |
The axis/button number. |
Encapsulates all data relevant to a sampled joystick event.
short JoystickEvent::value |
The value associated with this joystick event. For buttons this will be either 1 (down) or 0 (up). For axes, this will range between -32768 and 32768.