1 #include "core/joystickapi.hpp"
2 #include "core/keymapper.hpp"
6 threads::thread
* joystick_thread_handle
;
7 void dummy_init() throw() {}
8 void dummy_quit() throw() {}
9 void dummy_thread_fn() throw() {}
10 void dummy_signal() throw() {}
11 const char* dummy_name() { return "Dummy joystick plugin"; }
13 _joystick_driver driver
= {
16 .thread_fn
= dummy_thread_fn
,
17 .signal
= dummy_signal
,
21 void* joystick_thread(int _args
)
28 joystick_driver::joystick_driver(_joystick_driver drv
)
33 void joystick_driver_init() throw()
35 lsnes_gamepads_init();
37 joystick_thread_handle
= new threads::thread(joystick_thread
, 6);
40 void joystick_driver_quit() throw()
43 joystick_thread_handle
->join();
44 joystick_thread_handle
= NULL
;
45 lsnes_gamepads_deinit();
48 void joystick_driver_signal() throw()
53 const char* joystick_driver_name()