| 
    Kodi Documentation 22.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 | 
Functions | |
| kodi::addon::Joystick::Joystick (const std::string &provider="", const std::string &strName="") | |
| Constructor.   | |
| kodi::addon::Joystick::Joystick (const Joystick &other) | |
| Class copy constructor.   | |
| kodi::addon::Joystick::~Joystick (void) override=default | |
| Destructor.   | |
| Joystick & | kodi::addon::Joystick::operator= (const Joystick &rhs) | 
| Copy data from another Joystick class to here.   | |
| bool | kodi::addon::Joystick::operator== (const Joystick &rhs) const | 
| Comparison operator.   | |
| const std::string & | kodi::addon::Joystick::Provider (void) const | 
| Get provider name.   | |
| int | kodi::addon::Joystick::RequestedPort (void) const | 
| Get requested port number.   | |
| unsigned int | kodi::addon::Joystick::ButtonCount (void) const | 
| Get button count.   | |
| unsigned int | kodi::addon::Joystick::HatCount (void) const | 
| Get hat count.   | |
| unsigned int | kodi::addon::Joystick::AxisCount (void) const | 
| Get axis count.   | |
| unsigned int | kodi::addon::Joystick::MotorCount (void) const | 
| Get motor count.   | |
| bool | kodi::addon::Joystick::SupportsPowerOff (void) const | 
| Get supports power off.   | |
| void | kodi::addon::Joystick::SetProvider (const std::string &provider) | 
| Set provider name.   | |
| void | kodi::addon::Joystick::SetRequestedPort (int requestedPort) | 
| Get requested port number.   | |
| void | kodi::addon::Joystick::SetButtonCount (unsigned int buttonCount) | 
| Get button count.   | |
| void | kodi::addon::Joystick::SetHatCount (unsigned int hatCount) | 
| Get hat count.   | |
| void | kodi::addon::Joystick::SetAxisCount (unsigned int axisCount) | 
| Get axis count.   | |
| void | kodi::addon::Joystick::SetMotorCount (unsigned int motorCount) | 
| Get motor count.   | |
| void | kodi::addon::Joystick::SetSupportsPowerOff (bool supportsPowerOff) | 
| Get supports power off.   | |
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.