| 1 |
/* |
| 2 |
* Copyright (C) 2018-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 |
#include <string> |
| 13 |
#include <vector> |
| 14 |
|
| 15 |
struct game_controller_layout; |
| 16 |
|
| 17 |
namespace LIBRETRO |
| 18 |
{ |
| 19 |
class CControllerLayout |
| 20 |
{ |
| 21 |
public: |
| 22 |
CControllerLayout(const kodi::addon::GameControllerLayout& controller); |
| 23 |
|
| 24 |
const std::string &ControllerID() const { return m_controller.controller_id; } |
| 25 |
bool ProvidesInput() const { return m_controller.provides_input; } |
| 26 |
|
| 27 |
private: |
| 28 |
kodi::addon::GameControllerLayout m_controller; |
| 29 |
}; |
| 30 |
} |