mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
SDL handler
This commit is contained in:
parent
0e625e6928
commit
18b7955384
23 changed files with 2028 additions and 45 deletions
|
@ -10,6 +10,9 @@
|
|||
#elif HAVE_LIBEVDEV
|
||||
#include "evdev_joystick_handler.h"
|
||||
#endif
|
||||
#ifdef HAVE_SDL2
|
||||
#include "sdl_pad_handler.h"
|
||||
#endif
|
||||
#include "keyboard_pad_handler.h"
|
||||
#include "Emu/Io/Null/NullPadHandler.h"
|
||||
#include "Emu/Io/PadHandler.h"
|
||||
|
@ -171,6 +174,11 @@ void pad_thread::Init()
|
|||
cur_pad_handler = std::make_shared<mm_joystick_handler>();
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_SDL2
|
||||
case pad_handler::sdl:
|
||||
cur_pad_handler = std::make_shared<sdl_pad_handler>();
|
||||
break;
|
||||
#endif
|
||||
#ifdef HAVE_LIBEVDEV
|
||||
case pad_handler::evdev:
|
||||
cur_pad_handler = std::make_shared<evdev_joystick_handler>();
|
||||
|
@ -546,6 +554,10 @@ std::shared_ptr<PadHandlerBase> pad_thread::GetHandler(pad_handler type)
|
|||
case pad_handler::mm:
|
||||
return std::make_unique<mm_joystick_handler>();
|
||||
#endif
|
||||
#ifdef HAVE_SDL2
|
||||
case pad_handler::sdl:
|
||||
return std::make_unique<sdl_pad_handler>();
|
||||
#endif
|
||||
#ifdef HAVE_LIBEVDEV
|
||||
case pad_handler::evdev:
|
||||
return std::make_unique<evdev_joystick_handler>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue