diff --git a/test/testsprite.c b/test/testsprite.c index b9c628e15..7d66f8b0d 100644 --- a/test/testsprite.c +++ b/test/testsprite.c @@ -267,6 +267,9 @@ int main(int argc, char *argv[]) ++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: