Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

#include <PeripheralUtils.h>

Public Member Functions

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

Static Public Member Functions

static void FreeStruct (PERIPHERAL_EVENT &event)
 

Constructor & Destructor Documentation

◆ PeripheralEvent()

kodi::addon::PeripheralEvent::PeripheralEvent ( const PERIPHERAL_EVENT & event)
inlineexplicit

Member Function Documentation

◆ FreeStruct()

static void kodi::addon::PeripheralEvent::FreeStruct ( PERIPHERAL_EVENT & event)
inlinestatic

◆ ToStruct()

void kodi::addon::PeripheralEvent::ToStruct ( PERIPHERAL_EVENT & event) const
inline

The documentation for this class was generated from the following file: