![]() |
Kodi Documentation 18.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) | |
JoystickFeature (const JoystickFeature &other) | |
JoystickFeature (const JOYSTICK_FEATURE &feature) | |
JoystickFeature & | operator= (const JoystickFeature &rhs) |
bool | operator== (const JoystickFeature &other) const |
const std::string & | Name (void) const |
JOYSTICK_FEATURE_TYPE | Type (void) const |
bool | IsValid () const |
void | SetName (const std::string &name) |
void | SetType (JOYSTICK_FEATURE_TYPE type) |
void | SetInvalid (void) |
const DriverPrimitive & | Primitive (JOYSTICK_FEATURE_PRIMITIVE which) const |
void | SetPrimitive (JOYSTICK_FEATURE_PRIMITIVE which, const DriverPrimitive &primitive) |
std::array< DriverPrimitive, JOYSTICK_PRIMITIVE_MAX > & | Primitives () |
const std::array< DriverPrimitive, JOYSTICK_PRIMITIVE_MAX > & | Primitives () const |
void | ToStruct (JOYSTICK_FEATURE &feature) const |
Static Public Member Functions | |
static void | FreeStruct (JOYSTICK_FEATURE &feature) |
Class for joystick features. A feature can be:
1) scalar[1] 2) analog stick 3) accelerometer 4) motor 5) relative pointer[2] 6) absolute pointer 7) wheel 8) throttle 9) keyboard key
[1] All three driver primitives (buttons, hats and axes) have a state that can be represented using a single scalar value. For this reason, features that map to a single primitive are called "scalar features".
[2] Relative pointers are similar to analog sticks, but they use relative distances instead of positions.
|
inline |
|
inline |
|
inlineexplicit |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |