src/input/InputTranslator.h
raw| 1 | /* |
| 2 | * Copyright (C) 2017-2021 Team Kodi (https://kodi.tv) |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | * See LICENSE.md for more information. |
| 6 | */ |
| 7 | |
| 8 | #pragma once |
| 9 | |
| 10 | #include <kodi/addon-instance/Game.h> |
| 11 | |
| 12 | namespace LIBRETRO |
| 13 | { |
| 14 | class CInputTranslator |
| 15 | { |
| 16 | public: |
| 17 | /*! |
| 18 | * \brief Translate from string to Game API enum |
| 19 | */ |
| 20 | static GAME_PORT_TYPE GetPortType(const std::string &portType); |
| 21 | }; |
| 22 | } |