Lua: Fix type confusion between signed and unsigned
[lsnes.git] / include / core / joystickapi.hpp
blob7dbd25beab6e6bd3baef9493b91822e5e5b2dbf2
1 #ifndef _joystickapi__hpp__included__
2 #define _joystickapi__hpp__included__
4 //These correspond to various joystick_driver_* functions.
5 struct _joystick_driver
7 void (*init)();
8 void (*quit)();
9 void (*thread_fn)();
10 void (*signal)();
11 const char* (*name)();
14 struct joystick_driver
16 joystick_driver(_joystick_driver drv);
19 /**
20 * Joystick initialization function.
22 * - The third initialization function to be called by window_init().
23 * - The call occurs in the main thread.
24 * - Implemented by the joystick plugin.
26 void joystick_driver_init(bool soft = false) throw();
27 /**
28 * Joystick quit function.
30 * - The third last quit function to be called by window_quit().
31 * - The call occurs in the main thread.
32 * - Implemented by the joystick plugin.
34 void joystick_driver_quit(bool soft = false) throw();
35 /**
36 * Signal the joystick thread to quit.
38 void joystick_driver_signal() throw();
39 /**
40 * Identification for joystick plugin.
42 const char* joystick_driver_name();
44 #endif