PCem

view src/plat-joystick.h @ 154:d0d530adce12

Initial port to Linux (using Allegro). 64-bit fixes. Some changes to aid portability. A few other tweaks.
author TomW
date Thu Sep 04 21:07:24 2014 +0100
parents af02d3d16c98
children
line source
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4 void joystick_init();
5 void joystick_close();
6 void joystick_poll();
8 typedef struct joystick_t
9 {
10 int x, y;
11 int b[4];
12 } joystick_t;
14 extern joystick_t joystick_state[2];
15 extern int joysticks_present;
16 #ifdef __cplusplus
17 }
18 #endif