Merge pull request #26273 from 78andyp/blurayfixes2
[xbmc.git] / xbmc / platform / android / peripherals / AndroidJoystickTranslator.h
blob8681de0c123c10e47c151bac6db6d8d754f9be3a
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 namespace PERIPHERALS
13 class CAndroidJoystickTranslator
15 public:
16 /*!
17 * \brief Translate an axis ID to an Android enum suitable for logging
19 * \param axisId The axis ID given in <android/input.h>
21 * \return The translated enum label, or "unknown" if unknown
23 static const char* TranslateAxis(int axisId);
25 /*!
26 * \brief Translate a key code to an Android enum suitable for logging
28 * \param keyCode The key code given in <android/keycodes.h>
30 * \return The translated enum label, or "unknown" if unknown
32 static const char* TranslateKeyCode(int keyCode);
34 /*!
35 * \brief Translate a button key code to a feature on the default controller
37 * \param buttonKeycode The key code given in <android/keycodes.h>
39 * \return The translated feature, or "" if unknown
41 static const char* TranslateJoystickButton(int buttonKeycode);
43 } // namespace PERIPHERALS