Public Member Functions | |
JOYSTICK_STATE_AXIS | AxisState (void) const |
Get axis state. More... | |
JOYSTICK_STATE_BUTTON | ButtonState (void) const |
Get button state. More... | |
unsigned int | DriverIndex (void) const |
Get driver index. More... | |
JOYSTICK_STATE_HAT | HatState (void) const |
Get hat state. More... | |
JOYSTICK_STATE_MOTOR | MotorState (void) const |
Get motor state. More... | |
PeripheralEvent ()=default | |
Constructor. More... | |
PeripheralEvent (const PERIPHERAL_EVENT &event) | |
PeripheralEvent (unsigned int peripheralIndex, unsigned int axisIndex, JOYSTICK_STATE_AXIS state) | |
Constructor. More... | |
PeripheralEvent (unsigned int peripheralIndex, unsigned int buttonIndex, JOYSTICK_STATE_BUTTON state) | |
Constructor. More... | |
PeripheralEvent (unsigned int peripheralIndex, unsigned int hatIndex, JOYSTICK_STATE_HAT state) | |
Constructor. More... | |
unsigned int | PeripheralIndex (void) const |
Get peripheral index. More... | |
void | SetAxisState (JOYSTICK_STATE_AXIS state) |
Set axis state. More... | |
void | SetButtonState (JOYSTICK_STATE_BUTTON state) |
Set button state. More... | |
void | SetDriverIndex (unsigned int index) |
Set driver index. More... | |
void | SetHatState (JOYSTICK_STATE_HAT state) |
Set hat state. More... | |
void | SetMotorState (JOYSTICK_STATE_MOTOR state) |
Set motor state. More... | |
void | SetPeripheralIndex (unsigned int index) |
Set peripheral index. More... | |
void | SetType (PERIPHERAL_EVENT_TYPE type) |
Set type of event. More... | |
void | ToStruct (PERIPHERAL_EVENT &event) const |
PERIPHERAL_EVENT_TYPE | Type (void) const |
Get type of event. More... | |
Static Public Member Functions | |
static void | FreeStruct (PERIPHERAL_EVENT &event) |