![]() |
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
Wrapper class providing additional joystick information
This is a child class to expand another class with necessary joystick data.
More...
Classes | |
class | kodi::addon::Joystick |
Wrapper class providing additional joystick information
This is a child class to expand another class with necessary joystick data.
For data not provided by class Peripheral.
Used on:
The following table contains values that can be set with class Joystick :
Name | Type | Class | Set call | Get call |
---|---|---|---|---|
Joystick provider | const std::string& | Joystick | SetProvider | Provider |
Joystick requested port | int | Joystick | SetRequestedPort | RequestedPort |
Joystick button count | unsigned int | Joystick | SetButtonCount | ButtonCount |
Joystick hat count | unsigned int | Joystick | SetHatCount | HatCount |
Joystick axis count | unsigned int | Joystick | SetAxisCount | AxisCount |
Joystick motor count | unsigned int | Joystick | SetMotorCount | MotorCount |
Joystick support power off | bool | Joystick | SetSupportsPowerOff | SupportsPowerOff |
Peripheral type | PERIPHERAL_TYPE | Peripheral | SetType | Type |
Peripheral name | const std::string& | Peripheral | SetName | Name |
Peripheral vendor id | uint16_t | Peripheral | SetVendorID | VendorID |
Peripheral product id | uint16_t | Peripheral | SetProductID | ProductID |
Peripheral index | unsigned int | Peripheral | SetIndex | Index |
Further are following included:
Get axis count.
Get button count.
|
inline |
Class copy constructor.
[in] | other | Other class to copy on construct here |
|
inline |
Constructor.
[in] | provider | [optional] Provide name |
[in] | strName | [optional] Name of related joystick |
Get motor count.
Copy data from another Joystick class to here.
[in] | other | Other class to copy here |
|
inline |
Get provider name.
Get requested port number.
Get axis count.
[in] | axisCount | Axis count |
Get button count.
[in] | buttonCount | Button count |
Get hat count.
[in] | hatCount | Hat count |
Get motor count.
[in] | motorCount | Motor count |
|
inline |
Set provider name.
[in] | provider | Name of provider |
Get requested port number.
[in] | requestedPort | Port |
Get supports power off.
[in] | supportsPowerOff | True if power off is supported, false otherwise |
Get supports power off.
|
overridedefault |
Destructor.