Public Member Functions | |
bool | IsValid () const |
Check this feature is valid. | |
JoystickFeature (const JOYSTICK_FEATURE &feature) | |
JoystickFeature (const JoystickFeature &other) | |
Class copy constructor. | |
JoystickFeature (const std::string &name="", JOYSTICK_FEATURE_TYPE type=JOYSTICK_FEATURE_TYPE_UNKNOWN) | |
Class constructor. | |
const std::string & | Name (void) const |
Get name of feature. | |
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 DriverPrimitive & | Primitive (JOYSTICK_FEATURE_PRIMITIVE which) const |
Get primitive of 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). | |
void | SetInvalid (void) |
Set type as invalid. | |
void | SetName (const std::string &name) |
Set name of feature. | |
void | SetPrimitive (JOYSTICK_FEATURE_PRIMITIVE which, const DriverPrimitive &primitive) |
Set primitive for feature by wanted type. | |
void | SetType (JOYSTICK_FEATURE_TYPE type) |
Set type of feature. | |
void | ToStruct (JOYSTICK_FEATURE &feature) const |
JOYSTICK_FEATURE_TYPE | Type (void) const |
Get name of feature. | |
Static Public Member Functions | |
static void | FreeStruct (JOYSTICK_FEATURE &feature) |