diff src/video/gem/SDL_gemvideo.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 bf145eaf76ef
children 1901fea5edac
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c	Fri Jan 06 20:57:59 2006 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Fri Jan 06 22:24:09 2006 +0000
@@ -137,6 +137,8 @@
 static SDL_VideoDevice *GEM_CreateDevice(int devindex)
 {
 	SDL_VideoDevice *device;
+	int vectors_mask;
+	unsigned long dummy;
 
 	/* Initialize all variables that we clean on shutdown */
 	device = (SDL_VideoDevice *)malloc(sizeof(SDL_VideoDevice));
@@ -198,7 +200,12 @@
 #endif
 
 	/* Joystick + Mouse relative motion */
-	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);
 
 	device->free = GEM_DeleteDevice;