Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged r3059:3060 from branches/SDL-1.2: output key event's keysym.
  • Loading branch information
icculus committed Jun 13, 2007
1 parent 87f0a38 commit 4539820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/threadwin.c
Expand Up @@ -184,8 +184,9 @@ HandleKeyboard(void *unused)
/* We want to toggle visibility on buttonpress */
case SDL_KEYDOWN:
case SDL_KEYUP:
printf("Key '%c' has been %s\n",
printf("Key '%c' (keysym==%d) has been %s\n",
events[i].key.keysym.unicode,
(int) events[i].key.keysym.sym,
(events[i].key.state == SDL_PRESSED) ?
"pressed" : "released");

Expand Down

0 comments on commit 4539820

Please sign in to comment.