Debian Codegraph @

src/input/InputTypes.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 <map>
11 #include <memory>
12 #include <string>
13 #include <vector>
14
15 // No subclass
16 #define RETRO_SUBCLASS_NONE (-1)
17
18 namespace LIBRETRO
19 {
20 class CLibretroDevice;
21 using DevicePtr = std::shared_ptr<CLibretroDevice>;
22 using DeviceVector = std::vector<DevicePtr>;
23
24 using libretro_device_t = unsigned int;
25 using libretro_subclass_t = int;
26
27 struct FeatureMapItem
28 {
29 std::string feature;
30 std::string axis;
31 };
32 using FeatureMap = std::map<std::string, FeatureMapItem>;
33 }