Print keysym with key events.
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402339
This commit is contained in:
parent
32a4452933
commit
935338957d
1 changed files with 2 additions and 1 deletions
|
@ -179,8 +179,9 @@ int SDLCALL 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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue