Mercurial > sdl-ios-xcode
comparison test/testwm.c @ 1659:14717b52abc0 SDL-1.3
Merge trunk-1.3-3
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 May 2006 08:18:28 +0000 |
parents | 08e3393e9ffb |
children | 782fd950bd46 |
comparison
equal
deleted
inserted
replaced
1658:e49147870aac | 1659:14717b52abc0 |
---|---|
166 printf("Posting internal quit request\n"); | 166 printf("Posting internal quit request\n"); |
167 event.type = SDL_USEREVENT; | 167 event.type = SDL_USEREVENT; |
168 SDL_PushEvent(&event); | 168 SDL_PushEvent(&event); |
169 } | 169 } |
170 | 170 |
171 int FilterEvents(const SDL_Event *event) | 171 int SDLCALL FilterEvents(const SDL_Event *event) |
172 { | 172 { |
173 static int reallyquit = 0; | 173 static int reallyquit = 0; |
174 | 174 |
175 switch (event->type) { | 175 switch (event->type) { |
176 | 176 |
178 /* See what happened */ | 178 /* See what happened */ |
179 printf("App %s ", | 179 printf("App %s ", |
180 event->active.gain ? "gained" : "lost"); | 180 event->active.gain ? "gained" : "lost"); |
181 if ( event->active.state & SDL_APPACTIVE ) | 181 if ( event->active.state & SDL_APPACTIVE ) |
182 printf("active "); | 182 printf("active "); |
183 if ( event->active.state & SDL_APPINPUTFOCUS ) | |
184 printf("input "); | |
183 if ( event->active.state & SDL_APPMOUSEFOCUS ) | 185 if ( event->active.state & SDL_APPMOUSEFOCUS ) |
184 printf("mouse "); | 186 printf("mouse "); |
185 if ( event->active.state & SDL_APPINPUTFOCUS ) | |
186 printf("input "); | |
187 printf("focus\n"); | 187 printf("focus\n"); |
188 | 188 |
189 /* See if we are iconified or restored */ | 189 /* See if we are iconified or restored */ |
190 if ( event->active.state & SDL_APPACTIVE ) { | 190 if ( event->active.state & SDL_APPACTIVE ) { |
191 printf("App has been %s\n", | 191 printf("App has been %s\n", |