Linux: Add an evdev based controller backend, to replace SDL.

This commit is contained in:
Scott Mansell 2015-06-29 12:17:35 +12:00
parent 9a244f07fa
commit 2721fdf8a9
8 changed files with 438 additions and 0 deletions

View file

@ -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;
}