test/testsprite.c
changeset 529 21409a7a5fee
parent 288 2f5a6062db86
child 587 f00ccf8d8edc
     1.1 --- a/test/testsprite.c	Fri Oct 11 08:41:48 2002 +0000
     1.2 +++ b/test/testsprite.c	Fri Oct 11 08:45:07 2002 +0000
     1.3 @@ -267,6 +267,9 @@
     1.4  		++frames;
     1.5  		while ( SDL_PollEvent(&event) ) {
     1.6  			switch (event.type) {
     1.7 +				case SDL_MOUSEBUTTONDOWN:
     1.8 +					SDL_WarpMouse(screen->w/2, screen->h/2);
     1.9 +					break;
    1.10  				case SDL_KEYDOWN:
    1.11  					/* Any keypress quits the app... */
    1.12  				case SDL_QUIT: