--- np2/x11/np2.h 2004/01/13 16:28:18 1.7 +++ np2/x11/np2.h 2007/01/12 16:41:25 1.14 @@ -1,6 +1,10 @@ #ifndef NP2_X11_NP2_H__ #define NP2_X11_NP2_H__ +#include + +#include "joymng.h" + typedef struct { BYTE port; BYTE def_en; @@ -29,9 +33,13 @@ typedef struct { BYTE MOUSE_SW; BYTE JOYPAD1; BYTE JOYPAD2; - BYTE JOY1BTN[4]; + BYTE JOY1BTN[JOY_NBUTTON]; + BYTE JOYAXISMAP[2][JOY_NAXIS]; + BYTE JOYBTNMAP[2][JOY_NBUTTON]; + char JOYDEV[2][MAX_PATH]; COMCFG mpu; + COMCFG com[3]; BYTE confirm; @@ -40,6 +48,7 @@ typedef struct { BYTE statsave; BYTE toolwin; BYTE keydisp; + BYTE softkbd; BYTE hostdrv_write; BYTE jastsnd; BYTE I286SAVE; @@ -51,10 +60,7 @@ typedef struct { BYTE mouse_move_ratio; - char toolkit[32]; - BYTE disablemmx; - BYTE shared_pixmap; } NP2OSCFG; @@ -76,7 +82,7 @@ extern "C" { #endif /* np2.c */ -extern BOOL np2running; +extern volatile sig_atomic_t np2running; extern NP2OSCFG np2oscfg; extern BYTE scrnmode; @@ -87,7 +93,7 @@ extern UINT framemax; extern BOOL s98logging; extern int s98log_count; -extern BOOL use_shared_pixmap; +extern int verbose; extern char hddfolder[MAX_PATH]; extern char fddfolder[MAX_PATH]; @@ -106,7 +112,7 @@ void framereset(UINT cnt); void processwait(UINT cnt); int mainloop(void *); -#if defined(__GNUC__) && (defined(i386) || defined(__i386__)) +#if defined(GCC_CPU_ARCH_IA32) extern int mmxflag; int havemmx(void); #endif