From d261bcea8955358ebe8e0c7e7a04a6ac883d85bd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 16 Aug 2020 20:15:55 +0200 Subject: Added scancode list and resolver --- apps/wm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index f4dac44..aa46b8f 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -3,13 +3,17 @@ #include #include #include +#include #include #include #include -void onkey() +void onkey(u32 scancode) { - printf("KEY EVENT\n"); + printf("KEY EVENT %d\n", scancode); + if (KEY_ALPHANUMERIC(scancode)) { + printf("ALPHANUMERIC!\n"); + } } void main(char **argv) -- cgit v1.2.3