xbmc
Static Public Member Functions | List of all members
KODI::GAME::CControllerTranslator Class Reference

Static Public Member Functions

static const char * TranslateFeatureType (JOYSTICK::FEATURE_TYPE type)
 
static JOYSTICK::FEATURE_TYPE TranslateFeatureType (const std::string &strType)
 
static const char * TranslateFeatureCategory (JOYSTICK::FEATURE_CATEGORY category)
 
static JOYSTICK::FEATURE_CATEGORY TranslateFeatureCategory (const std::string &strCategory)
 
static const char * TranslateInputType (JOYSTICK::INPUT_TYPE type)
 
static JOYSTICK::INPUT_TYPE TranslateInputType (const std::string &strType)
 
static KEYBOARD::KeySymbol TranslateKeysym (const std::string &symbol)
 Translate a keyboard symbol to a Kodi key code. More...
 
static const char * TranslateKeycode (KEYBOARD::KeySymbol keycode)
 Translate a Kodi key code to a keyboard symbol. More...
 

Member Function Documentation

◆ TranslateKeycode()

const char * CControllerTranslator::TranslateKeycode ( KEYBOARD::KeySymbol  keycode)
static

Translate a Kodi key code to a keyboard symbol.

Parameters
keycodeThe Kodi key code
Returns
The key's symbol, or an empty string if no symbol is defined for the keycode

◆ TranslateKeysym()

KEYBOARD::KeySymbol CControllerTranslator::TranslateKeysym ( const std::string &  symbol)
static

Translate a keyboard symbol to a Kodi key code.

Parameters
symbolThe key's symbol, defined in the kodi-game-controllers project
Returns
The layout-independent keycode associated with the key

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