mirror of
https://github.com/yawut/SDL.git
synced 2026-08-12 12:05:32 -05:00
Merged r3059:3060 from branches/SDL-1.2: output key event's keysym.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user