Linux evdev joystick support (#2885)

* Linux evdev joystick support (#2678)

* Cleanup libevdev configure code

* evdev fixes

* Evdev joystick additions/fixes

* Error message tweak

* Fix evdev multiple joysticks (thanks @hcorion!)

* Change by-id to by-path in evdev
This commit is contained in:
Ryan Gonzalez 2017-07-26 13:03:06 -05:00 committed by Ivan
parent 08f0047529
commit dbd69536ed
6 changed files with 516 additions and 0 deletions

View file

@ -27,6 +27,9 @@
#ifdef _WIN32
#include "mm_joystick_handler.h"
#endif
#ifdef HAVE_LIBEVDEV
#include "evdev_joystick_handler.h"
#endif
#include "Emu/RSX/Null/NullGSRender.h"
@ -137,6 +140,9 @@ void rpcs3_app::InitializeCallbacks()
#endif
#ifdef _WIN32
case pad_handler::mm: return std::make_shared<mm_joystick_handler>();
#endif
#ifdef HAVE_LIBEVDEV
case pad_handler::evdev: return std::make_shared<evdev_joystick_handler>();
#endif
default: fmt::throw_exception("Invalid pad handler: %s", type);
}