Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PeripheralUtils.h>
Public Member Functions | |
JoystickFeature (const std::string &name="", JOYSTICK_FEATURE_TYPE type=JOYSTICK_FEATURE_TYPE_UNKNOWN) | |
Class constructor. | |
JoystickFeature (const JoystickFeature &other) | |
Class copy constructor. | |
JoystickFeature & | operator= (const JoystickFeature &rhs) |
Copy data from another JoystickFeature class to here. | |
bool | operator== (const JoystickFeature &other) const |
Compare this with another class of this type. | |
const std::string & | Name (void) const |
Get name of feature. | |
JOYSTICK_FEATURE_TYPE | Type (void) const |
Get name of feature. | |
bool | IsValid () const |
Check this feature is valid. | |
void | SetName (const std::string &name) |
Set name of feature. | |
void | SetType (JOYSTICK_FEATURE_TYPE type) |
Set type of feature. | |
void | SetInvalid (void) |
Set type as invalid. | |
const DriverPrimitive & | Primitive (JOYSTICK_FEATURE_PRIMITIVE which) const |
Get primitive of feature by wanted type. | |
void | SetPrimitive (JOYSTICK_FEATURE_PRIMITIVE which, const DriverPrimitive &primitive) |
Set primitive for feature by wanted type. | |
std::array< DriverPrimitive, JOYSTICK_PRIMITIVE_MAX > & | Primitives () |
Get all primitives on this class. | |
const std::array< DriverPrimitive, JOYSTICK_PRIMITIVE_MAX > & | Primitives () const |
Get all primitives on this class (as constant). | |
JoystickFeature (const JOYSTICK_FEATURE &feature) | |
void | ToStruct (JOYSTICK_FEATURE &feature) const |
Static Public Member Functions | |
static void | FreeStruct (JOYSTICK_FEATURE &feature) |
|
inlineexplicit |
|
inlinestatic |
|
inline |