--- np2/x11/np2.h 2004/03/25 15:10:33 1.8 +++ np2/x11/np2.h 2007/01/12 19:09:58 1.15 @@ -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,7 +33,10 @@ 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]; @@ -41,6 +48,7 @@ typedef struct { BYTE statsave; BYTE toolwin; BYTE keydisp; + BYTE softkbd; BYTE hostdrv_write; BYTE jastsnd; BYTE I286SAVE; @@ -52,10 +60,9 @@ typedef struct { BYTE mouse_move_ratio; - char toolkit[32]; - BYTE disablemmx; - BYTE shared_pixmap; + BYTE drawinterp; + BYTE F11KEY; } NP2OSCFG; @@ -72,12 +79,19 @@ enum { MMXFLAG_NOTSUPPORT = 2 }; +enum { + INTERP_NEAREST = 0, + INTERP_TILES = 1, + INTERP_BILINEAR = 2, + INTERP_HYPER = 3 +}; + #ifdef __cplusplus extern "C" { #endif /* np2.c */ -extern BOOL np2running; +extern volatile sig_atomic_t np2running; extern NP2OSCFG np2oscfg; extern BYTE scrnmode; @@ -88,7 +102,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]; @@ -107,7 +121,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