test/testsprite.c
changeset 529 21409a7a5fee
parent 288 2f5a6062db86
child 587 f00ccf8d8edc
equal deleted inserted replaced
528:9cba51c7a4ef 529:21409a7a5fee
   265 	while ( !done ) {
   265 	while ( !done ) {
   266 		/* Check for events */
   266 		/* Check for events */
   267 		++frames;
   267 		++frames;
   268 		while ( SDL_PollEvent(&event) ) {
   268 		while ( SDL_PollEvent(&event) ) {
   269 			switch (event.type) {
   269 			switch (event.type) {
       
   270 				case SDL_MOUSEBUTTONDOWN:
       
   271 					SDL_WarpMouse(screen->w/2, screen->h/2);
       
   272 					break;
   270 				case SDL_KEYDOWN:
   273 				case SDL_KEYDOWN:
   271 					/* Any keypress quits the app... */
   274 					/* Any keypress quits the app... */
   272 				case SDL_QUIT:
   275 				case SDL_QUIT:
   273 					done = 1;
   276 					done = 1;
   274 					break;
   277 					break;