Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemwm.c @ 3859:5d14acfdf84d SDL-1.2
Allow grabing mouse by locking its position
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Tue, 12 Sep 2006 19:34:18 +0000 |
parents | d910939febfa |
children | a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
3858:9ffd318e7b64 | 3859:5d14acfdf84d |
---|---|
106 return 1; | 106 return 1; |
107 } | 107 } |
108 | 108 |
109 SDL_GrabMode GEM_GrabInput(_THIS, SDL_GrabMode mode) | 109 SDL_GrabMode GEM_GrabInput(_THIS, SDL_GrabMode mode) |
110 { | 110 { |
111 return SDL_GRAB_OFF; | 111 if (this->screen == NULL) { |
112 return SDL_GRAB_OFF; | |
113 } | |
114 | |
115 return mode; | |
112 } | 116 } |