Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::JOYSTICK::CJoystickUtils Class Reference

#include <JoystickUtils.h>

Static Public Member Functions

static std::string MakeKeyName (const FeatureName &feature)
 Create a key name used to index an action in the keymap.
 
static std::string MakeKeyName (const FeatureName &feature, ANALOG_STICK_DIRECTION dir)
 Create a key name used to index an action in the keymap.
 
static std::string MakeKeyName (const FeatureName &feature, WHEEL_DIRECTION dir)
 Create a key name used to index an action in the keymap.
 
static std::string MakeKeyName (const FeatureName &feature, THROTTLE_DIRECTION dir)
 Create a key name used to index an action in the keymap.
 
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

◆ GetAnalogStickDirections()

const std::vector< ANALOG_STICK_DIRECTION > & CJoystickUtils::GetAnalogStickDirections ( )
static

Return a vector of the four cardinal directions.

◆ GetThrottleDirections()

const std::vector< THROTTLE_DIRECTION > & CJoystickUtils::GetThrottleDirections ( )
static

Return a vector of the two throttle directions.

◆ GetWheelDirections()

const std::vector< WHEEL_DIRECTION > & CJoystickUtils::GetWheelDirections ( )
static

Return a vector of the two wheel directions.

◆ 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,
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

◆ MakeKeyName() [4/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

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