Added joystick emulation
This commit is contained in:
parent
9ba75bd910
commit
4cb7d58d53
7 changed files with 293 additions and 2 deletions
19
src/plat-joystick.h
Normal file
19
src/plat-joystick.h
Normal 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
|
||||
|
||||
Loading…
Reference in a new issue