Skip to content

Commit

Permalink
Made it easier to test some things on the framebuffer console
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 8, 2006
1 parent 835f3e5 commit bd31237
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/testalpha.c
Expand Up @@ -505,7 +505,10 @@ fprintf(stderr, "Slept %d ticks\n", (SDL_GetTicks()-ticks));
}
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;
Expand Down
4 changes: 2 additions & 2 deletions test/testwm.c
Expand Up @@ -180,10 +180,10 @@ int SDLCALL FilterEvents(const SDL_Event *event)
event->active.gain ? "gained" : "lost");
if ( event->active.state & SDL_APPACTIVE )
printf("active ");
if ( event->active.state & SDL_APPMOUSEFOCUS )
printf("mouse ");
if ( event->active.state & SDL_APPINPUTFOCUS )
printf("input ");
if ( event->active.state & SDL_APPMOUSEFOCUS )
printf("mouse ");
printf("focus\n");

/* See if we are iconified or restored */
Expand Down

0 comments on commit bd31237

Please sign in to comment.