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

Keyboard translation utilities. More...

#include <KeyboardTranslator.h>

Static Public Member Functions

static XBMCKey TranslateKeysym (const SymbolName &symbolName)
 Translate a keyboard symbol to a Kodi key code.
 
static const char * TranslateKeycode (XBMCKey keycode)
 Translate a Kodi key code to a keyboard symbol.
 

Detailed Description

Keyboard translation utilities.

Member Function Documentation

◆ TranslateKeycode()

const char * CKeyboardTranslator::TranslateKeycode ( XBMCKey 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()

XBMCKey CKeyboardTranslator::TranslateKeysym ( const SymbolName & symbolName)
static

Translate a keyboard symbol to a Kodi key code.

Keyboard symbols are hardware-independent virtual key representations. They are used to help facilitate keyboard mapping.

Parameters
symbolThe key's symbol, defined in the Controller Topology Project: https://github.com/kodi-game/controller-topology-project/blob/master/Readme-Keyboard.md
Returns
The layout-independent keycode associated with the key

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