xbmc
Static Public Member Functions | List of all members
KODI::JOYSTICK::CJoystickUtils Class Reference

Static Public Member Functions

static std::string MakeKeyName (const FeatureName &feature)
 Create a key name used to index an action in the keymap. More...
 
static std::string MakeKeyName (const FeatureName &feature, ANALOG_STICK_DIRECTION dir)
 Create a key name used to index an action in the keymap. More...
 
static std::string MakeKeyName (const FeatureName &feature, WHEEL_DIRECTION dir)
 Create a key name used to index an action in the keymap. More...
 
static std::string MakeKeyName (const FeatureName &feature, THROTTLE_DIRECTION dir)
 Create a key name used to index an action in the keymap. More...
 
static const std::vector< ANALOG_STICK_DIRECTION > & GetAnalogStickDirections ()
 Return a vector of the four cardinal directions.
 
static const std::vector< WHEEL_DIRECTION > & GetWheelDirections ()
 Return a vector of the two wheel directions.
 
static const std::vector< THROTTLE_DIRECTION > & GetThrottleDirections ()
 Return a vector of the two throttle directions.
 

Member Function Documentation

◆ MakeKeyName() [1/4]

std::string CJoystickUtils::MakeKeyName ( const FeatureName &  feature)
static

Create a key name used to index an action in the keymap.

Parameters
featureThe feature name
Returns
A valid name for a key in the joystick keymap

◆ MakeKeyName() [2/4]

std::string CJoystickUtils::MakeKeyName ( const FeatureName &  feature,
ANALOG_STICK_DIRECTION  dir 
)
static

Create a key name used to index an action in the keymap.

Parameters
featureThe feature name
dirThe direction for analog sticks
Returns
A valid name for a key in the joystick keymap

◆ MakeKeyName() [3/4]

std::string CJoystickUtils::MakeKeyName ( const FeatureName &  feature,
WHEEL_DIRECTION  dir 
)
static

Create a key name used to index an action in the keymap.

Parameters
featureThe feature name
dirThe direction for a wheel to turn
Returns
A valid name for a key in the joystick keymap

◆ MakeKeyName() [4/4]

std::string CJoystickUtils::MakeKeyName ( const FeatureName &  feature,
THROTTLE_DIRECTION  dir 
)
static

Create a key name used to index an action in the keymap.

Parameters
featureThe feature name
dirThe direction for a throttle to move
Returns
A valid name for a key in the joystick keymap

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