kodi
KeyboardTranslator.h
1 /*
2  * Copyright (C) 2024 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "KeyboardSymbols.h"
12 #include "KeyboardTypes.h"
13 #include "XBMC_keysym.h"
14 
15 namespace KODI
16 {
17 namespace KEYBOARD
18 {
19 
24 {
25 public:
37  static XBMCKey TranslateKeysym(const SymbolName& symbolName);
38 
46  static const char* TranslateKeycode(XBMCKey keycode);
47 };
48 
49 } // namespace KEYBOARD
50 } // namespace KODI
static const char * TranslateKeycode(XBMCKey keycode)
Translate a Kodi key code to a keyboard symbol.
Definition: KeyboardTranslator.cpp:172
XBMCKey XBMCKey
Symbol of a hardware-independent key.
Definition: KeyboardTypes.h:26
Definition: AudioDecoder.h:18
Keyboard translation utilities.
Definition: KeyboardTranslator.h:23
static XBMCKey TranslateKeysym(const SymbolName &symbolName)
Translate a keyboard symbol to a Kodi key code.
Definition: KeyboardTranslator.cpp:163