Added joystick emulation

This commit is contained in:
TomW 2014-06-08 13:45:26 +01:00
commit 4cb7d58d53
7 changed files with 293 additions and 2 deletions

19
src/plat-joystick.h Normal file
View file

@ -0,0 +1,19 @@
#ifdef __cplusplus
extern "C" {
#endif
void joystick_init();
void joystick_close();
void poll_joystick();
typedef struct joystick_t
{
int x, y;
int b[4];
} joystick_t;
extern joystick_t joystick_state[2];
extern int joysticks_present;
#ifdef __cplusplus
}
#endif