|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <PeripheralUtils.h>
Public Member Functions | |
| Joystick (const std::string &provider="", const std::string &strName="") | |
| Constructor. More... | |
| Joystick (const Joystick &other) | |
| Class copy constructor. More... | |
| ~Joystick (void) override=default | |
| Destructor. More... | |
| Joystick & | operator= (const Joystick &rhs) |
| Copy data from another Joystick class to here. More... | |
| const std::string & | Provider (void) const |
| Get provider name. More... | |
| int | RequestedPort (void) const |
| Get requested port number. More... | |
| unsigned int | ButtonCount (void) const |
| Get button count. More... | |
| unsigned int | HatCount (void) const |
| Get hat count. More... | |
| unsigned int | AxisCount (void) const |
| Get axis count. More... | |
| unsigned int | MotorCount (void) const |
| Get motor count. More... | |
| bool | SupportsPowerOff (void) const |
| Get supports power off. More... | |
| void | SetProvider (const std::string &provider) |
| Set provider name. More... | |
| void | SetRequestedPort (int requestedPort) |
| Get requested port number. More... | |
| void | SetButtonCount (unsigned int buttonCount) |
| Get button count. More... | |
| void | SetHatCount (unsigned int hatCount) |
| Get hat count. More... | |
| void | SetAxisCount (unsigned int axisCount) |
| Get axis count. More... | |
| void | SetMotorCount (unsigned int motorCount) |
| Get motor count. More... | |
| void | SetSupportsPowerOff (bool supportsPowerOff) |
| Get supports power off. More... | |
| Joystick (const JOYSTICK_INFO &info) | |
| void | ToStruct (JOYSTICK_INFO &info) const |
Public Member Functions inherited from kodi::addon::Peripheral | |
| Peripheral (PERIPHERAL_TYPE type=PERIPHERAL_TYPE_UNKNOWN, const std::string &strName="") | |
| Constructor. More... | |
| virtual | ~Peripheral (void)=default |
| Destructor. More... | |
| PERIPHERAL_TYPE | Type (void) const |
| Get peripheral type. More... | |
| const std::string & | Name (void) const |
| Get peripheral name. More... | |
| uint16_t | VendorID (void) const |
| Get peripheral vendor id. More... | |
| uint16_t | ProductID (void) const |
| Get peripheral product id. More... | |
| unsigned int | Index (void) const |
| Get peripheral index identifier. More... | |
| bool | IsVidPidKnown (void) const |
| Check VID and PID are known. More... | |
| void | SetType (PERIPHERAL_TYPE type) |
| Set peripheral type. More... | |
| void | SetName (const std::string &strName) |
| Set peripheral name. More... | |
| void | SetVendorID (uint16_t vendorId) |
| Set peripheral vendor id. More... | |
| void | SetProductID (uint16_t productId) |
| Set peripheral product identifier. More... | |
| void | SetIndex (unsigned int index) |
| Set peripheral index. More... | |
| Peripheral (const PERIPHERAL_INFO &info) | |
| void | ToStruct (PERIPHERAL_INFO &info) const |
Static Public Member Functions | |
| static void | FreeStruct (JOYSTICK_INFO &info) |
Static Public Member Functions inherited from kodi::addon::Peripheral | |
| static void | FreeStruct (PERIPHERAL_INFO &info) |
|
inlineexplicit |
|
inlinestatic |
|
inline |