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:
Gered 2018-05-27 12:55:10 -04:00
parent 9430184ebb
commit 048fd83331

View file

@ -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;