comparison 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
comparison
equal deleted inserted replaced
3856:492ff98822fd 3857:be01e0b82dca
47 void SDL_AtariXbios_InstallVectors(int vectors_mask) 47 void SDL_AtariXbios_InstallVectors(int vectors_mask)
48 { 48 {
49 void *oldpile; 49 void *oldpile;
50 50
51 /* Clear variables */ 51 /* Clear variables */
52 SDL_AtariXbios_mouseb = 52 SDL_AtariXbios_mouselock =
53 SDL_AtariXbios_mouseb =
53 SDL_AtariXbios_mousex = 54 SDL_AtariXbios_mousex =
54 SDL_AtariXbios_mousey = 55 SDL_AtariXbios_mousey =
55 SDL_AtariXbios_joystick = 56 SDL_AtariXbios_joystick =
56 atari_prevmouseb = 0; 57 atari_prevmouseb = 0;
57 58
144 } 145 }
145 } 146 }
146 atari_prevmouseb = SDL_AtariXbios_mouseb; 147 atari_prevmouseb = SDL_AtariXbios_mouseb;
147 } 148 }
148 } 149 }
150
151 void SDL_AtariXbios_LockMousePosition(SDL_bool lockPosition)
152 {
153 SDL_AtariXbios_mouselock = lockPosition;
154 }