Made it easier to test some things on the framebuffer console
authorSam Lantinga <slouken@libsdl.org>
Mon, 08 May 2006 05:30:15 +0000
changeset 1779 67fc81efcfc3
parent 1778 e28233f37f8c
child 1780 7a36f01acf71
Made it easier to test some things on the framebuffer console
test/testalpha.c
test/testwm.c
--- a/test/testalpha.c	Mon May 08 05:17:10 2006 +0000
+++ b/test/testalpha.c	Mon May 08 05:30:15 2006 +0000
@@ -505,7 +505,10 @@
 					}
 					break;
 				case SDL_KEYDOWN:
-					/* Any keypress quits the app... */
+					if ( event.key.keysym.sym == SDLK_ESCAPE ) {
+						done = 1;
+					}
+					break;
 				case SDL_QUIT:
 					done = 1;
 					break;
--- a/test/testwm.c	Mon May 08 05:17:10 2006 +0000
+++ b/test/testwm.c	Mon May 08 05:30:15 2006 +0000
@@ -180,10 +180,10 @@
 				event->active.gain ? "gained" : "lost");
 			if ( event->active.state & SDL_APPACTIVE )
 				printf("active ");
+			if ( event->active.state & SDL_APPINPUTFOCUS )
+				printf("input ");
 			if ( event->active.state & SDL_APPMOUSEFOCUS )
 				printf("mouse ");
-			if ( event->active.state & SDL_APPINPUTFOCUS )
-				printf("input ");
 			printf("focus\n");
 
 			/* See if we are iconified or restored */