*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Oct 2002 08:45:07 +0000
changeset 529 21409a7a5fee
parent 528 9cba51c7a4ef
child 530 d37660186e58
*** empty log message ***
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: