diff src/video/ataricommon/SDL_xbiosevents.c @ 3857:be01e0b82dca SDL-1.2

Allow mouse to be locked when grabbed with GEM driver
author Patrice Mandin <patmandin@gmail.com>
date Tue, 12 Sep 2006 19:28:54 +0000
parents d910939febfa
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_xbiosevents.c	Tue Sep 12 19:20:50 2006 +0000
+++ b/src/video/ataricommon/SDL_xbiosevents.c	Tue Sep 12 19:28:54 2006 +0000
@@ -49,7 +49,8 @@
 	void *oldpile;
 
 	/* Clear variables */
-	SDL_AtariXbios_mouseb =
+	SDL_AtariXbios_mouselock =
+		SDL_AtariXbios_mouseb =
 		SDL_AtariXbios_mousex =
 		SDL_AtariXbios_mousey =
 		SDL_AtariXbios_joystick =
@@ -146,3 +147,8 @@
 		atari_prevmouseb = SDL_AtariXbios_mouseb;
 	}
 }
+
+void SDL_AtariXbios_LockMousePosition(SDL_bool lockPosition)
+{
+	SDL_AtariXbios_mouselock = lockPosition;
+}