aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wm.c')
-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)