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 :
Further are following included:
◆ Joystick() [1/2]
Joystick |
( |
const std::string & | provider = "", |
|
|
const std::string & | strName = "" ) |
|
inline |
Constructor.
- Parameters
-
[in] | provider | [optional] Provide name |
[in] | strName | [optional] Name of related joystick |
◆ Joystick() [2/2]
Class copy constructor.
- Parameters
-
[in] | other | Other class to copy on construct here |
◆ ~Joystick()
◆ operator=()
Copy data from another Joystick class to here.
- Parameters
-
[in] | other | Other class to copy here |
◆ operator==()
bool operator== |
( |
const Joystick & | rhs | ) |
const |
|
inline |
◆ Provider()
const std::string & Provider |
( |
void | | ) |
const |
|
inline |
Get provider name.
- Returns
- Name of provider
◆ RequestedPort()
int RequestedPort |
( |
void | | ) |
const |
|
inline |
Get requested port number.
- Returns
- Port
◆ ButtonCount()
unsigned int ButtonCount |
( |
void | | ) |
const |
|
inline |
Get button count.
- Returns
- Button count
◆ HatCount()
unsigned int HatCount |
( |
void | | ) |
const |
|
inline |
Get hat count.
- Returns
- Hat count
◆ AxisCount()
unsigned int AxisCount |
( |
void | | ) |
const |
|
inline |
Get axis count.
- Returns
- Axis count
◆ MotorCount()
unsigned int MotorCount |
( |
void | | ) |
const |
|
inline |
Get motor count.
- Returns
- Motor count
◆ SupportsPowerOff()
bool SupportsPowerOff |
( |
void | | ) |
const |
|
inline |
Get supports power off.
- Returns
- True if power off is supported, false otherwise
◆ SetProvider()
void SetProvider |
( |
const std::string & | provider | ) |
|
|
inline |
Set provider name.
- Parameters
-
[in] | provider | Name of provider |
◆ SetRequestedPort()
void SetRequestedPort |
( |
int | requestedPort | ) |
|
|
inline |
Get requested port number.
- Parameters
-
◆ SetButtonCount()
void SetButtonCount |
( |
unsigned int | buttonCount | ) |
|
|
inline |
Get button count.
- Parameters
-
[in] | buttonCount | Button count |
◆ SetHatCount()
void SetHatCount |
( |
unsigned int | hatCount | ) |
|
|
inline |
Get hat count.
- Parameters
-
◆ SetAxisCount()
void SetAxisCount |
( |
unsigned int | axisCount | ) |
|
|
inline |
Get axis count.
- Parameters
-
◆ SetMotorCount()
void SetMotorCount |
( |
unsigned int | motorCount | ) |
|
|
inline |
Get motor count.
- Parameters
-
[in] | motorCount | Motor count |
◆ SetSupportsPowerOff()
void SetSupportsPowerOff |
( |
bool | supportsPowerOff | ) |
|
|
inline |
Get supports power off.
- Parameters
-
[in] | supportsPowerOff | True if power off is supported, false otherwise |