Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.c @ 1857:417f2af2bd52
Fix mouse cursor change
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 14 Jun 2006 18:57:58 +0000 |
parents | 2405517b5eab |
children | c121d94672cb f1816773a309 |
comparison
equal
deleted
inserted
replaced
1856:21f13c787b46 | 1857:417f2af2bd52 |
---|---|
184 /* Mouse entering/leaving window */ | 184 /* Mouse entering/leaving window */ |
185 if (resultat & MU_M1) { | 185 if (resultat & MU_M1) { |
186 if (this->input_grab == SDL_GRAB_OFF) { | 186 if (this->input_grab == SDL_GRAB_OFF) { |
187 if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) { | 187 if (SDL_GetAppState() & SDL_APPMOUSEFOCUS) { |
188 SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); | 188 SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); |
189 if (SDL_GetAppState() & SDL_APPINPUTFOCUS) { | |
190 graf_mouse(ARROW, NULL); | |
191 } | |
189 } else { | 192 } else { |
190 SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); | 193 SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); |
194 if (SDL_GetAppState() & SDL_APPINPUTFOCUS) { | |
195 if (GEM_cursor == (void *) -1) { | |
196 graf_mouse(M_OFF, NULL); | |
197 } else if (GEM_cursor) { | |
198 graf_mouse(USER_DEF, GEM_cursor->mform_p); | |
199 } | |
200 } | |
191 } | 201 } |
192 } | 202 } |
193 } | 203 } |
194 | 204 |
195 /* Timer event ? */ | 205 /* Timer event ? */ |