mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 07:25:26 +00:00
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:
parent
08f0047529
commit
dbd69536ed
6 changed files with 516 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue