Mercurial > sdl-ios-xcode
comparison test/testsprite.c @ 529:21409a7a5fee
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Oct 2002 08:45:07 +0000 |
parents | 2f5a6062db86 |
children | f00ccf8d8edc |
comparison
equal
deleted
inserted
replaced
528:9cba51c7a4ef | 529:21409a7a5fee |
---|---|
265 while ( !done ) { | 265 while ( !done ) { |
266 /* Check for events */ | 266 /* Check for events */ |
267 ++frames; | 267 ++frames; |
268 while ( SDL_PollEvent(&event) ) { | 268 while ( SDL_PollEvent(&event) ) { |
269 switch (event.type) { | 269 switch (event.type) { |
270 case SDL_MOUSEBUTTONDOWN: | |
271 SDL_WarpMouse(screen->w/2, screen->h/2); | |
272 break; | |
270 case SDL_KEYDOWN: | 273 case SDL_KEYDOWN: |
271 /* Any keypress quits the app... */ | 274 /* Any keypress quits the app... */ |
272 case SDL_QUIT: | 275 case SDL_QUIT: |
273 done = 1; | 276 done = 1; |
274 break; | 277 break; |