diff src/video/ataricommon/SDL_xbiosinterrupt.S @ 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 c9b51268668f
children 99210400e8b9
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_xbiosinterrupt.S	Tue Sep 12 19:20:50 2006 +0000
+++ b/src/video/ataricommon/SDL_xbiosinterrupt.S	Tue Sep 12 19:28:54 2006 +0000
@@ -33,6 +33,7 @@
 	.globl	_SDL_AtariXbios_MouseVector
 	.globl	_SDL_AtariXbios_JoystickVector
 
+	.globl	_SDL_AtariXbios_mouselock
 	.globl	_SDL_AtariXbios_mouseb
 	.globl	_SDL_AtariXbios_mousex
 	.globl	_SDL_AtariXbios_mousey
@@ -125,6 +126,13 @@
 	extw	d0
 	addw	d0,_SDL_AtariXbios_mousey
 
+	/* Lock mouse position ? */
+	tstw	_SDL_AtariXbios_mouselock
+	beq.s	no_mouse_lock
+	clrb	a0@(1)
+	clrb	a0@(2)
+no_mouse_lock:
+
 	/* Jump through old vector */
 	movel	sp@+,d0
 
@@ -133,10 +141,9 @@
 
 	.data
 	.even
+	.comm	_SDL_AtariXbios_mouselock,2*1
 	.comm	_SDL_AtariXbios_mousex,2*1
-	.even
 	.comm	_SDL_AtariXbios_mousey,2*1
-	.even
 	.comm	_SDL_AtariXbios_mouseb,2*1
 
 /*--- Our joystick vector ---*/