aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMarvin Borner2020-08-16 20:15:55 +0200
committerMarvin Borner2020-08-16 20:15:55 +0200
commitd261bcea8955358ebe8e0c7e7a04a6ac883d85bd (patch)
tree7f37a96ac9d5b7cb92933cc807c52613161cd6cc /apps
parent0dd3f5e6f4f7607611ce23510858ab3597b5df9f (diff)
Added scancode list and resolver
Diffstat (limited to 'apps')
-rw-r--r--apps/wm.c8
1 files changed, 6 insertions, 2 deletions
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 <cpu.h>
#include <def.h>
#include <gui.h>
+#include <input.h>
#include <print.h>
#include <sys.h>
#include <vesa.h>
-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)