1 /*
2  *  Copyright (C) 2015-2020 Garrett Brown
3  *  Copyright (C) 2015-2020 Team Kodi
4  *
5  *  SPDX-License-Identifier: GPL-2.0-or-later
6  *  See LICENSE.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <memory>
12 #include <vector>
13 
14 namespace JOYSTICK
15 {
16   /*!
17    * \brief Joystick interface types
18    *
19    * Priority of interfaces is determined by JoystickUtils::GetDrivers().
20    */
21   enum class EJoystickInterface
22   {
23     NONE,
24     COCOA,
25     DIRECTINPUT,
26     LINUX,
27     SDL,
28     UDEV,
29     XINPUT,
30   };
31 
32   class CJoystick;
33   typedef std::shared_ptr<CJoystick> JoystickPtr;
34   typedef std::vector<JoystickPtr>   JoystickVector;
35 }
36