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().
The following table contains values that can be set with class PeripheralEvent :
Further are several class constructors with values included.
◆ PeripheralEvent() [1/4]
◆ PeripheralEvent() [2/4]
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | buttonIndex | Button index |
[in] | state | Joystick state button |
◆ PeripheralEvent() [3/4]
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | hatIndex | Hat index |
[in] | state | Joystick state hat |
◆ PeripheralEvent() [4/4]
Constructor.
- Parameters
-
[in] | peripheralIndex | Peripheral index |
[in] | axisIndex | Axis index |
[in] | state | Joystick state axis |
◆ Type()
◆ PeripheralIndex()
unsigned int PeripheralIndex |
( |
void |
| ) |
const |
|
inline |
Get peripheral index.
- Returns
- Peripheral index number
◆ DriverIndex()
unsigned int DriverIndex |
( |
void |
| ) |
const |
|
inline |
Get driver index.
- Returns
- Driver index number
◆ ButtonState()
◆ HatState()
Get hat state.
- Returns
- Hat state
◆ AxisState()
Get axis state.
- Returns
- Axis state
◆ MotorState()
Get motor state.
- Returns
- Motor state
◆ SetType()
Set type of event.
- Parameters
-
◆ SetPeripheralIndex()
void SetPeripheralIndex |
( |
unsigned int |
index | ) |
|
|
inline |
Set peripheral index.
- Parameters
-
[in] | index | Peripheral index number |
◆ SetDriverIndex()
void SetDriverIndex |
( |
unsigned int |
index | ) |
|
|
inline |
Set driver index.
- Parameters
-
[in] | index | Driver index number |
◆ SetButtonState()
Set button state.
- Parameters
-
◆ SetHatState()
Set hat state.
- Parameters
-
◆ SetAxisState()
Set axis state.
- Parameters
-
◆ SetMotorState()
Set motor state.
- Parameters
-