Made it easier to test some things on the framebuffer console

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401738
This commit is contained in:
Sam Lantinga 2006-05-08 05:30:15 +00:00
parent 9cbe216d62
commit 11037522c7
2 changed files with 6 additions and 3 deletions

View file

@ -505,7 +505,10 @@ fprintf(stderr, "Slept %d ticks\n", (SDL_GetTicks()-ticks));
} }
break; break;
case SDL_KEYDOWN: case SDL_KEYDOWN:
/* Any keypress quits the app... */ if ( event.key.keysym.sym == SDLK_ESCAPE ) {
done = 1;
}
break;
case SDL_QUIT: case SDL_QUIT:
done = 1; done = 1;
break; break;

View file

@ -180,10 +180,10 @@ int SDLCALL FilterEvents(const SDL_Event *event)
event->active.gain ? "gained" : "lost"); event->active.gain ? "gained" : "lost");
if ( event->active.state & SDL_APPACTIVE ) if ( event->active.state & SDL_APPACTIVE )
printf("active "); printf("active ");
if ( event->active.state & SDL_APPMOUSEFOCUS )
printf("mouse ");
if ( event->active.state & SDL_APPINPUTFOCUS ) if ( event->active.state & SDL_APPINPUTFOCUS )
printf("input "); printf("input ");
if ( event->active.state & SDL_APPMOUSEFOCUS )
printf("mouse ");
printf("focus\n"); printf("focus\n");
/* See if we are iconified or restored */ /* See if we are iconified or restored */