Debian Codegraph @

xbmc/games/controllers/input/DefaultKeyboardTranslator.h

raw
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 "input/keyboard/KeyboardTypes.h"
12
13 namespace KODI
14 {
15 namespace GAME
16 {
17
18 /*!
19 * \ingroup games
20 */
21 class CDefaultKeyboardTranslator
22 {
23 public:
24 /*!
25 * \brief Translate a Kodi key code to a keyboard key name in a controller profile
26 *
27 * \param keycode The Kodi key code
28 *
29 * \return The key's name, or an empty string if no symbol is defined for the keycode
30 */
31 static const char* TranslateKeycode(KEYBOARD::XBMCKey keycode);
32 };
33
34 } // namespace GAME
35 } // namespace KODI