1 #ifndef _joystickapi__hpp__included__
2 #define _joystickapi__hpp__included__
4 //These correspond to various joystick_driver_* functions.
5 struct _joystick_driver
11 const char* (*name
)();
14 struct joystick_driver
16 joystick_driver(_joystick_driver drv
);
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();
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();
36 * Signal the joystick thread to quit.
38 void joystick_driver_signal() throw();
40 * Identification for joystick plugin.
42 const char* joystick_driver_name();