Debian Codegraph @

xbmc/games/controllers/input/DefaultMouseTranslator.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/mouse/MouseTypes.h"
12
13 namespace KODI
14 {
15 namespace GAME
16 {
17
18 /*!
19 * \ingroup games
20 */
21 class CDefaultMouseTranslator
22 {
23 public:
24 /*!
25 * \brief Translate a mouse button ID to a mouse button name
26 *
27 * \param button The button ID
28 *
29 * \return The mouse button's name, or empty if unknown
30 */
31 static const char* TranslateMouseButton(MOUSE::BUTTON_ID button);
32
33 /*!
34 * \brief Translate a mouse pointer direction
35 *
36 * \param direction The relative pointer direction
37 *
38 * \return The relative pointer direction, or empty if unknown
39 */
40 static const char* TranslateMousePointer(MOUSE::POINTER_DIRECTION direction);
41 };
42
43 } // namespace GAME
44 } // namespace KODI