update key events test to show ascii decimal value for translated chars
mainly just to help tell a non-translatable key from a spacebar press
This commit is contained in:
parent
9430184ebb
commit
048fd83331
|
@ -31,10 +31,11 @@ void test_events(void) {
|
|||
switch (event->type) {
|
||||
case EVENT_TYPE_KEYBOARD:
|
||||
ch = key_to_char(event->keyboard.key, event->keyboard.mod);
|
||||
printf("KEYBOARD: %2d - %d (%d) - \"%c\"\n",
|
||||
printf("KEYBOARD: %2d - %d (%d) - '%c' (%d)\n",
|
||||
event->keyboard.key,
|
||||
event->keyboard.action,
|
||||
event->keyboard.mod,
|
||||
ch,
|
||||
ch);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue