comparison src/video/ataricommon/SDL_xbiosinterrupt.S @ 2023:b7d426b28c18

Allow mouse to be locked when grabbed with GEM driver
author Patrice Mandin <patmandin@gmail.com>
date Tue, 12 Sep 2006 19:43:29 +0000
parents c9b51268668f
children 99210400e8b9
comparison
equal deleted inserted replaced
2022:649e9ac39f74 2023:b7d426b28c18
31 .globl _SDL_AtariXbios_Install 31 .globl _SDL_AtariXbios_Install
32 .globl _SDL_AtariXbios_Restore 32 .globl _SDL_AtariXbios_Restore
33 .globl _SDL_AtariXbios_MouseVector 33 .globl _SDL_AtariXbios_MouseVector
34 .globl _SDL_AtariXbios_JoystickVector 34 .globl _SDL_AtariXbios_JoystickVector
35 35
36 .globl _SDL_AtariXbios_mouselock
36 .globl _SDL_AtariXbios_mouseb 37 .globl _SDL_AtariXbios_mouseb
37 .globl _SDL_AtariXbios_mousex 38 .globl _SDL_AtariXbios_mousex
38 .globl _SDL_AtariXbios_mousey 39 .globl _SDL_AtariXbios_mousey
39 .globl _SDL_AtariXbios_joystick 40 .globl _SDL_AtariXbios_joystick
40 41
123 /* Y movement */ 124 /* Y movement */
124 moveb a0@(2),d0 125 moveb a0@(2),d0
125 extw d0 126 extw d0
126 addw d0,_SDL_AtariXbios_mousey 127 addw d0,_SDL_AtariXbios_mousey
127 128
129 /* Lock mouse position ? */
130 tstw _SDL_AtariXbios_mouselock
131 beq.s no_mouse_lock
132 clrb a0@(1)
133 clrb a0@(2)
134 no_mouse_lock:
135
128 /* Jump through old vector */ 136 /* Jump through old vector */
129 movel sp@+,d0 137 movel sp@+,d0
130 138
131 movel oldmousevector,sp@- 139 movel oldmousevector,sp@-
132 rts 140 rts
133 141
134 .data 142 .data
135 .even 143 .even
144 .comm _SDL_AtariXbios_mouselock,2*1
136 .comm _SDL_AtariXbios_mousex,2*1 145 .comm _SDL_AtariXbios_mousex,2*1
137 .even
138 .comm _SDL_AtariXbios_mousey,2*1 146 .comm _SDL_AtariXbios_mousey,2*1
139 .even
140 .comm _SDL_AtariXbios_mouseb,2*1 147 .comm _SDL_AtariXbios_mouseb,2*1
141 148
142 /*--- Our joystick vector ---*/ 149 /*--- Our joystick vector ---*/
143 150
144 .text 151 .text