summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-06-29 12:17:35 +1200
committerScott Mansell <phiren@gmail.com>2015-07-01 10:13:05 +1200
commit2721fdf8a94e2e49f907eda24a1406d2225acaf6 (patch)
tree1220160a25dddf5a0ab0321b775c6635e8a0665f /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
parent9a244f07fa270c15c907564ee72a4530845c6ea8 (diff)
Linux: Add an evdev based controller backend, to replace SDL.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
index 6b8b11fd3a..0631069e16 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
@@ -26,6 +26,9 @@
#ifdef CIFACE_USE_ANDROID
#include "InputCommon/ControllerInterface/Android/Android.h"
#endif
+#ifdef CIFACE_USE_EVDEV
+ #include "InputCommon/ControllerInterface/evdev/evdev.h"
+#endif
using namespace ciface::ExpressionParser;
@@ -69,6 +72,9 @@ void ControllerInterface::Initialize(void* const hwnd)
#ifdef CIFACE_USE_ANDROID
ciface::Android::Init(m_devices);
#endif
+#ifdef CIFACE_USE_EVDEV
+ ciface::evdev::Init(m_devices);
+#endif
m_is_init = true;
}