Mercurial > sdl-ios-xcode
diff src/video/ataricommon/SDL_gemdosevents.c @ 1237:a8068adf156b
Disable XBIOS driver for mouse and joystick under MiNT. Will write a driver for /dev/mouse later.
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Fri, 06 Jan 2006 22:24:09 +0000 |
parents | 8ef3e7e92a91 |
children | a201a8c62522 |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_gemdosevents.c Fri Jan 06 20:57:59 2006 +0000 +++ b/src/video/ataricommon/SDL_gemdosevents.c Fri Jan 06 22:24:09 2006 +0000 @@ -35,6 +35,7 @@ /* Mint includes */ #include <mint/osbind.h> +#include <mint/cookie.h> #include "SDL.h" #include "SDL_sysevents.h" @@ -76,7 +77,8 @@ void AtariGemdos_InitOSKeymap(_THIS) { - int i; + int i, vectors_mask; + unsigned long dummy; memset(gemdos_currentkeyboard, 0, sizeof(gemdos_currentkeyboard)); memset(gemdos_previouskeyboard, 0, sizeof(gemdos_previouskeyboard)); @@ -111,7 +113,12 @@ keymap[SCANCODE_LEFTALT] = SDLK_LALT; keymap[SCANCODE_CAPSLOCK] = SDLK_CAPSLOCK; - SDL_AtariXbios_InstallVectors(ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS); + vectors_mask = ATARI_XBIOS_MOUSEEVENTS|ATARI_XBIOS_JOYSTICKEVENTS; + if (Getcookie(C_MiNT, &dummy)==C_FOUND) { + vectors_mask = 0; + } + + SDL_AtariXbios_InstallVectors(vectors_mask); } void AtariGemdos_PumpEvents(_THIS)