Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/test/testsprite.c Fri Oct 11 08:41:48 2002 +0000 +++ b/test/testsprite.c Fri Oct 11 08:45:07 2002 +0000 @@ -267,6 +267,9 @@ ++frames; while ( SDL_PollEvent(&event) ) { switch (event.type) { + case SDL_MOUSEBUTTONDOWN: + SDL_WarpMouse(screen->w/2, screen->h/2); + break; case SDL_KEYDOWN: /* Any keypress quits the app... */ case SDL_QUIT: