Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Inherits Peripheral.

Public Member Functions

unsigned int AxisCount (void) const
 Get axis count.
 
unsigned int ButtonCount (void) const
 Get button count.
 
unsigned int HatCount (void) const
 Get hat count.
 
 Joystick (const Joystick &other)
 Class copy constructor.
 
 Joystick (const JOYSTICK_INFO &info)
 
 Joystick (const std::string &provider="", const std::string &strName="")
 Constructor.
 
unsigned int MotorCount (void) const
 Get motor count.
 
Joystickoperator= (const Joystick &rhs)
 Copy data from another Joystick class to here.
 
bool operator== (const Joystick &rhs) const
 Comparison operator.
 
const std::string & Provider (void) const
 Get provider name.
 
int RequestedPort (void) const
 Get requested port number.
 
void SetAxisCount (unsigned int axisCount)
 Get axis count.
 
void SetButtonCount (unsigned int buttonCount)
 Get button count.
 
void SetHatCount (unsigned int hatCount)
 Get hat count.
 
void SetMotorCount (unsigned int motorCount)
 Get motor count.
 
void SetProvider (const std::string &provider)
 Set provider name.
 
void SetRequestedPort (int requestedPort)
 Get requested port number.
 
void SetSupportsPowerOff (bool supportsPowerOff)
 Get supports power off.
 
bool SupportsPowerOff (void) const
 Get supports power off.
 
void ToStruct (JOYSTICK_INFO &info) const
 
 ~Joystick (void) override=default
 Destructor.
 
- Public Member Functions inherited from Peripheral
unsigned int Index (void) const
 Get peripheral index identifier.
 
bool IsVidPidKnown (void) const
 Check VID and PID are known.
 
const std::string & Name (void) const
 Get peripheral name.
 
bool operator== (const Peripheral &rhs) const
 Comparison operator.
 
 Peripheral (const PERIPHERAL_INFO &info)
 
 Peripheral (PERIPHERAL_TYPE type=PERIPHERAL_TYPE_UNKNOWN, const std::string &strName="")
 Constructor.
 
uint16_t ProductID (void) const
 Get peripheral product id.
 
void SetIndex (unsigned int index)
 Set peripheral index.
 
void SetName (const std::string &strName)
 Set peripheral name.
 
void SetProductID (uint16_t productId)
 Set peripheral product identifier.
 
void SetType (PERIPHERAL_TYPE type)
 Set peripheral type.
 
void SetVendorID (uint16_t vendorId)
 Set peripheral vendor id.
 
void ToStruct (PERIPHERAL_INFO &info) const
 
PERIPHERAL_TYPE Type (void) const
 Get peripheral type.
 
uint16_t VendorID (void) const
 Get peripheral vendor id.
 
virtual ~Peripheral (void)=default
 Destructor.
 

Static Public Member Functions

static void FreeStruct (JOYSTICK_INFO &info)
 
- Static Public Member Functions inherited from Peripheral
static void FreeStruct (PERIPHERAL_INFO &info)
 

The documentation for this class was generated from the following file: