Wrapper class for peripheral events
To handle data of change events between add-on and Kodi.
More...
Wrapper class for peripheral events
To handle data of change events between add-on and Kodi.
Used on kodi::addon::CInstancePeripheral::GetEvents() and kodi::addon::CInstancePeripheral::SendEvent().
@ingroup cpp_kodi_addon_peripheral_Defs_Peripheral_PeripheralEvent
The following table contains values that can be set with class PeripheralEvent :
Further are several class constructors with values included.
◆ AxisState()
Get axis state.
- Returns
- Axis state
◆ ButtonState()
◆ DriverIndex()
unsigned int kodi::addon::PeripheralEvent::DriverIndex |
( |
void | | ) |
const |
|
inline |
Get driver index.
- Returns
- Driver index number
◆ HatState()
Get hat state.
- Returns
- Hat state
◆ MotorState()
Get motor state.
- Returns
- Motor state
◆ PeripheralEvent() [1/4]
kodi::addon::PeripheralEvent::PeripheralEvent |
( |
| ) |
|
|
default |
◆ PeripheralEvent() [2/4]
kodi::addon::PeripheralEvent::PeripheralEvent |
( |
unsigned int | peripheralIndex, |
|
|
unsigned int | axisIndex, |
|
|
JOYSTICK_STATE_AXIS | state ) |
|
inline |
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | axisIndex | Axis index |
[in] | state | Joystick state axis |
◆ PeripheralEvent() [3/4]
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | buttonIndex | Button index |
[in] | state | Joystick state button |
◆ PeripheralEvent() [4/4]
kodi::addon::PeripheralEvent::PeripheralEvent |
( |
unsigned int | peripheralIndex, |
|
|
unsigned int | hatIndex, |
|
|
JOYSTICK_STATE_HAT | state ) |
|
inline |
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | hatIndex | Hat index |
[in] | state | Joystick state hat |
◆ PeripheralIndex()
unsigned int kodi::addon::PeripheralEvent::PeripheralIndex |
( |
void | | ) |
const |
|
inline |
Get peripheral index.
- Returns
- Peripheral index number
◆ SetAxisState()
Set axis state.
- Parameters
-
◆ SetButtonState()
Set button state.
- Parameters
-
◆ SetDriverIndex()
void kodi::addon::PeripheralEvent::SetDriverIndex |
( |
unsigned int | index | ) |
|
|
inline |
Set driver index.
- Parameters
-
[in] | index | Driver index number |
◆ SetHatState()
Set hat state.
- Parameters
-
◆ SetMotorState()
Set motor state.
- Parameters
-
◆ SetPeripheralIndex()
void kodi::addon::PeripheralEvent::SetPeripheralIndex |
( |
unsigned int | index | ) |
|
|
inline |
Set peripheral index.
- Parameters
-
[in] | index | Peripheral index number |
◆ SetType()
Set type of event.
- Parameters
-
◆ Type()