Skip to content

Commit

Permalink
[api] Switch default provider from udev to linux
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Sep 22, 2016
1 parent b77d587 commit ffe3a00
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/api/JoystickManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
#endif
#if defined(HAVE_LINUX_JOYSTICK)
#include "linux/JoystickInterfaceLinux.h"
#elif defined(HAVE_SDL)
#endif
#if defined(HAVE_SDL)
#include "sdl/JoystickInterfaceSDL.h"
#endif
#if defined(HAVE_COCOA)
Expand Down Expand Up @@ -104,19 +105,24 @@ bool CJoystickManager::Initialize(IScannerCallback* scanner)

m_scanner = scanner;

// Windows
#if defined(HAVE_DIRECT_INPUT)
m_interfaces.push_back(new CJoystickInterfaceDirectInput);
#endif
#if defined(HAVE_XINPUT)
m_interfaces.push_back(new CJoystickInterfaceXInput);
#endif
#if defined(HAVE_UDEV)

// Linux
#if defined(HAVE_LINUX_JOYSTICK)
m_interfaces.push_back(new CJoystickInterfaceLinux);
#elif defined(HAVE_UDEV)
m_interfaces.push_back(new CJoystickInterfaceUdev);
#elif defined(HAVE_SDL)
m_interfaces.push_back(new CJoystickInterfaceSDL);
#elif defined(HAVE_LINUX_JOYSTICK)
m_interfaces.push_back(new CJoystickInterfaceLinux);
#endif

// OSX
#if defined(HAVE_COCOA)
m_interfaces.push_back(new CJoystickInterfaceCocoa);
#endif
Expand Down

0 comments on commit ffe3a00

Please sign in to comment.