Skip to content

Commit

Permalink
Add support for ARAnyM Atari emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed May 5, 2005
1 parent cf6b727 commit ed88808
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/joystick/mint/SDL_sysjoystick.c
Expand Up @@ -83,7 +83,8 @@ enum {
MCH_ST=0,
MCH_STE,
MCH_TT,
MCH_F30
MCH_F30,
MCH_ARANYM
};

/* Joypad buttons
Expand Down Expand Up @@ -182,7 +183,8 @@ int SDL_SYS_JoystickInit(void)

/* Enable some default joysticks */
if ((cookie_mch == MCH_ST<<16) || ((cookie_mch>>16) == MCH_STE) ||
(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16)) {
(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16) ||
(cookie_mch == MCH_ARANYM<<16)) {
atarijoysticks[IKBD_JOY1].enabled=(SDL_AtariIkbd_enabled!=0);
}
if ((cookie_mch == MCH_STE<<16) || (cookie_mch == MCH_F30<<16)) {
Expand All @@ -197,7 +199,8 @@ int SDL_SYS_JoystickInit(void)
if (envr) {
/* IKBD on any Atari, maybe clones */
if ((cookie_mch == MCH_ST<<16) || ((cookie_mch>>16) == MCH_STE) ||
(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16)) {
(cookie_mch == MCH_TT<<16) || (cookie_mch == MCH_F30<<16) ||
(cookie_mch == MCH_ARANYM<<16)) {
if (SDL_AtariIkbd_enabled!=0) {
TEST_JOY_ENABLED(envr, "ikbd-joy1", IKBD_JOY1);
}
Expand Down
4 changes: 3 additions & 1 deletion src/video/ataricommon/SDL_atarievents.c
Expand Up @@ -51,7 +51,8 @@ enum {
MCH_ST=0,
MCH_STE,
MCH_TT,
MCH_F30
MCH_F30,
MCH_ARANYM
};

void (*Atari_ShutdownEvents)(void);
Expand All @@ -73,6 +74,7 @@ static void Atari_InitializeEvents(_THIS)
case MCH_STE:
case MCH_TT:
case MCH_F30:
case MCH_ARANYM:
this->InitOSKeymap=AtariIkbd_InitOSKeymap;
this->PumpEvents=AtariIkbd_PumpEvents;
Atari_ShutdownEvents=AtariIkbd_ShutdownEvents;
Expand Down

0 comments on commit ed88808

Please sign in to comment.