changeset 529:21409a7a5fee

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Oct 2002 08:45:07 +0000
parents 9cba51c7a4ef
children d37660186e58
files test/testsprite.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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: