# HG changeset patch # User Sam Lantinga # Date 1034325907 0 # Node ID 21409a7a5fee13b109f7f7d8fa383438bab21f4d # Parent 9cba51c7a4efa2cf7258e059dcd5cf613b4fa26c *** empty log message *** diff -r 9cba51c7a4ef -r 21409a7a5fee test/testsprite.c --- 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: