1 #ifndef _INCLUDE_KEYBOARD_H 2 #define _INCLUDE_KEYBOARD_H 3 4 #include "pce.h" 5 6 #if defined(WIN32) 7 8 #if defined(SDL) 9 #include "osd_win_sdl_machine.h" 10 #else // !SDL 11 12 #if defined(ALLEGRO) 13 #include "osd_win_allegro_machine.h" 14 #endif // ALLEGRO 15 16 #endif // !SDL 17 18 #else // !WIN32 19 20 #if defined(SDL) 21 #include "osd_linux_sdl_machine.h" 22 #else // !SDL 23 24 #if defined(ALLEGRO) 25 #include "osd_linux_allegro_machine.h" 26 #endif // ALLEGRO 27 28 #if !defined(FREEBSD) 29 #include <linux/joystick.h> 30 #endif // !FREEBSD 31 32 #endif // !SDL 33 #endif // !WIN32 34 35 typedef struct 36 { 37 SInt16 axis[4]; 38 SInt16 button[16]; 39 } js_status; 40 41 extern char auto_fire_A[5]; 42 /* Is auto fire on */ 43 44 extern char auto_fire_B[5]; 45 /* Is auto fire on */ 46 47 #endif 48