|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <PeripheralUtils.h>
Public Member Functions | |
| PeripheralEvent ()=default | |
| 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... | |
| PeripheralEvent (unsigned int peripheralIndex, unsigned int axisIndex, JOYSTICK_STATE_AXIS state) | |
| Constructor. More... | |
| PERIPHERAL_EVENT_TYPE | Type (void) const |
| Get type of event. More... | |
| unsigned int | PeripheralIndex (void) const |
| Get peripheral index. More... | |
| unsigned int | DriverIndex (void) const |
| Get driver index. More... | |
| JOYSTICK_STATE_BUTTON | ButtonState (void) const |
| Get button state. More... | |
| JOYSTICK_STATE_HAT | HatState (void) const |
| Get hat state. More... | |
| JOYSTICK_STATE_AXIS | AxisState (void) const |
| Get axis state. More... | |
| JOYSTICK_STATE_MOTOR | MotorState (void) const |
| Get motor state. More... | |
| void | SetType (PERIPHERAL_EVENT_TYPE type) |
| Set type of event. More... | |
| void | SetPeripheralIndex (unsigned int index) |
| Set peripheral index. More... | |
| void | SetDriverIndex (unsigned int index) |
| Set driver index. More... | |
| void | SetButtonState (JOYSTICK_STATE_BUTTON state) |
| Set button state. More... | |
| void | SetHatState (JOYSTICK_STATE_HAT state) |
| Set hat state. More... | |
| void | SetAxisState (JOYSTICK_STATE_AXIS state) |
| Set axis state. More... | |
| void | SetMotorState (JOYSTICK_STATE_MOTOR state) |
| Set motor state. More... | |
| PeripheralEvent (const PERIPHERAL_EVENT &event) | |
| void | ToStruct (PERIPHERAL_EVENT &event) const |
Static Public Member Functions | |
| static void | FreeStruct (PERIPHERAL_EVENT &event) |
|
inlineexplicit |
|
inlinestatic |
|
inline |