Add support for ARAnyM Atari emulator
authorPatrice Mandin <patmandin@gmail.com>
Thu, 05 May 2005 10:52:22 +0000
changeset 1054e89d7f826b4a
parent 1053 f596fa4f17a6
child 1055 7eeb3324d37d
Add support for ARAnyM Atari emulator
src/joystick/mint/SDL_sysjoystick.c
src/video/ataricommon/SDL_atarievents.c
     1.1 --- a/src/joystick/mint/SDL_sysjoystick.c	Wed Apr 20 05:57:39 2005 +0000
     1.2 +++ b/src/joystick/mint/SDL_sysjoystick.c	Thu May 05 10:52:22 2005 +0000
     1.3 @@ -83,7 +83,8 @@
     1.4  	MCH_ST=0,
     1.5  	MCH_STE,
     1.6  	MCH_TT,
     1.7 -	MCH_F30
     1.8 +	MCH_F30,
     1.9 +	MCH_ARANYM
    1.10  };
    1.11  
    1.12  /*	Joypad buttons
    1.13 @@ -182,7 +183,8 @@
    1.14  
    1.15  	/* Enable some default joysticks */
    1.16  	if ((cookie_mch == MCH_ST<<16) || ((cookie_mch>>16) == MCH_STE) ||
    1.17 -		(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16)) {
    1.18 +		(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16) ||
    1.19 +		(cookie_mch == MCH_ARANYM<<16)) {
    1.20  		atarijoysticks[IKBD_JOY1].enabled=(SDL_AtariIkbd_enabled!=0);
    1.21  	}
    1.22  	if ((cookie_mch == MCH_STE<<16) || (cookie_mch == MCH_F30<<16)) {
    1.23 @@ -197,7 +199,8 @@
    1.24  	if (envr) {
    1.25  		/* IKBD on any Atari, maybe clones */
    1.26  		if ((cookie_mch == MCH_ST<<16) || ((cookie_mch>>16) == MCH_STE) ||
    1.27 -			(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16)) {
    1.28 +			(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16) ||
    1.29 +			(cookie_mch == MCH_ARANYM<<16)) {
    1.30  			if (SDL_AtariIkbd_enabled!=0) {
    1.31  				TEST_JOY_ENABLED(envr, "ikbd-joy1", IKBD_JOY1);
    1.32  			}
     2.1 --- a/src/video/ataricommon/SDL_atarievents.c	Wed Apr 20 05:57:39 2005 +0000
     2.2 +++ b/src/video/ataricommon/SDL_atarievents.c	Thu May 05 10:52:22 2005 +0000
     2.3 @@ -51,7 +51,8 @@
     2.4  	MCH_ST=0,
     2.5  	MCH_STE,
     2.6  	MCH_TT,
     2.7 -	MCH_F30
     2.8 +	MCH_F30,
     2.9 +	MCH_ARANYM
    2.10  };
    2.11  
    2.12  void (*Atari_ShutdownEvents)(void);
    2.13 @@ -73,6 +74,7 @@
    2.14  		case MCH_STE:
    2.15  		case MCH_TT:
    2.16  		case MCH_F30:
    2.17 +		case MCH_ARANYM:
    2.18  			this->InitOSKeymap=AtariIkbd_InitOSKeymap;
    2.19  			this->PumpEvents=AtariIkbd_PumpEvents;
    2.20  			Atari_ShutdownEvents=AtariIkbd_ShutdownEvents;