src/video/ataricommon/SDL_gemdosevents.c
changeset 1237 a8068adf156b
parent 1221 8ef3e7e92a91
child 1310 a201a8c62522
     1.1 --- a/src/video/ataricommon/SDL_gemdosevents.c	Fri Jan 06 20:57:59 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_gemdosevents.c	Fri Jan 06 22:24:09 2006 +0000
     1.3 @@ -35,6 +35,7 @@
     1.4  
     1.5  /* Mint includes */
     1.6  #include <mint/osbind.h>
     1.7 +#include <mint/cookie.h>
     1.8  
     1.9  #include "SDL.h"
    1.10  #include "SDL_sysevents.h"
    1.11 @@ -76,7 +77,8 @@
    1.12  
    1.13  void AtariGemdos_InitOSKeymap(_THIS)
    1.14  {
    1.15 -	int i;
    1.16 +	int i, vectors_mask;
    1.17 +	unsigned long dummy;
    1.18  
    1.19  	memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard));
    1.20  	memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard));
    1.21 @@ -111,7 +113,12 @@
    1.22  	keymap[SCANCODE_LEFTALT] = SDLK_LALT;
    1.23  	keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK;
    1.24  
    1.25 -	SDL_AtariXbios_InstallVectors(ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS);
    1.26 +	vectors_mask = ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS;
    1.27 +	if (Getcookie(C_MiNT, &dummy)==C_FOUND) {
    1.28 +		vectors_mask = 0;
    1.29 +	}
    1.30 +
    1.31 +	SDL_AtariXbios_InstallVectors(vectors_mask);
    1.32  }
    1.33  
    1.34  void AtariGemdos_PumpEvents(_THIS)