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 177967fc81efcfc3
parent 1778 e28233f37f8c
child 1780 7a36f01acf71
Made it easier to test some things on the framebuffer console
test/testalpha.c
test/testwm.c
     1.1 --- a/test/testalpha.c	Mon May 08 05:17:10 2006 +0000
     1.2 +++ b/test/testalpha.c	Mon May 08 05:30:15 2006 +0000
     1.3 @@ -505,7 +505,10 @@
     1.4  					}
     1.5  					break;
     1.6  				case SDL_KEYDOWN:
     1.7 -					/* Any keypress quits the app... */
     1.8 +					if ( event.key.keysym.sym == SDLK_ESCAPE ) {
     1.9 +						done = 1;
    1.10 +					}
    1.11 +					break;
    1.12  				case SDL_QUIT:
    1.13  					done = 1;
    1.14  					break;
     2.1 --- a/test/testwm.c	Mon May 08 05:17:10 2006 +0000
     2.2 +++ b/test/testwm.c	Mon May 08 05:30:15 2006 +0000
     2.3 @@ -180,10 +180,10 @@
     2.4  				event->active.gain ? "gained" : "lost");
     2.5  			if ( event->active.state & SDL_APPACTIVE )
     2.6  				printf("active ");
     2.7 +			if ( event->active.state & SDL_APPINPUTFOCUS )
     2.8 +				printf("input ");
     2.9  			if ( event->active.state & SDL_APPMOUSEFOCUS )
    2.10  				printf("mouse ");
    2.11 -			if ( event->active.state & SDL_APPINPUTFOCUS )
    2.12 -				printf("input ");
    2.13  			printf("focus\n");
    2.14  
    2.15  			/* See if we are iconified or restored */