Debian Codegraph @

xbmc/games/controllers/ControllerTypes.h

raw
1 /*
2 * Copyright (C) 2015-2018 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 <memory>
12 #include <vector>
13
14 namespace KODI
15 {
16 namespace GAME
17 {
18 class CController;
19
20 /*!
21 * \ingroup games
22 *
23 * \brief Smart pointer to a game controller (\ref CController)
24 */
25 using ControllerPtr = std::shared_ptr<CController>;
26
27 /*!
28 * \ingroup games
29 *
30 * \brief Vector of smart pointers to a game controller (\ref CController)
31 */
32 using ControllerVector = std::vector<ControllerPtr>;
33
34 /*!
35 * \ingroup games
36 *
37 * \brief Type of input provided by a hardware or controller port
38 */
39 enum class PORT_TYPE
40 {
41 UNKNOWN,
42 KEYBOARD,
43 MOUSE,
44 CONTROLLER,
45 };
46 } // namespace GAME
47 } // namespace KODI