From 048fd833311d0aff3f358f941500bb71ca2a5cc6 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 27 May 2018 12:55:10 -0400 Subject: [PATCH] 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 --- TEST/EVENTS.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TEST/EVENTS.C b/TEST/EVENTS.C index 003028c..5a2f450 100644 --- a/TEST/EVENTS.C +++ b/TEST/EVENTS.C @@ -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;