Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemmouse.c @ 1267:fdc7ef6ecab4
Correctly manage mouse relative motion
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 25 Jan 2006 20:36:21 +0000 |
parents | b8d311d90021 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1266:a7bea6db3c3e | 1267:fdc7ef6ecab4 |
---|---|
163 #endif | 163 #endif |
164 | 164 |
165 void GEM_CheckMouseMode(_THIS) | 165 void GEM_CheckMouseMode(_THIS) |
166 { | 166 { |
167 /* If the mouse is hidden and input is grabbed, we use relative mode */ | 167 /* If the mouse is hidden and input is grabbed, we use relative mode */ |
168 if ( !(SDL_cursorstate & CURSOR_VISIBLE) && | 168 if ( (!(SDL_cursorstate & CURSOR_VISIBLE)) && |
169 (this->input_grab != SDL_GRAB_OFF) && | 169 /*(this->input_grab != SDL_GRAB_OFF) && */ /* Damn GEM can not grab */ |
170 (SDL_GetAppState() & SDL_APPACTIVE) ) { | 170 (SDL_GetAppState() & SDL_APPACTIVE) ) { |
171 GEM_mouse_relative = SDL_TRUE; | 171 GEM_mouse_relative = SDL_TRUE; |
172 } else { | 172 } else { |
173 GEM_mouse_relative = SDL_FALSE; | 173 GEM_mouse_relative = SDL_FALSE; |
174 } | 174 } |