aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-22 15:08:57 +0200
committerMarvin Borner2020-08-22 15:08:57 +0200
commitd748a6f54ce7af45afde487936d5a02cb2a91b05 (patch)
tree1ec6b0c8b3576fa15f21a305dfcad5196aac6e01 /apps/wm.c
parent00a64ff4675b4c1e22d6b4856e1f6b7c04ed96d8 (diff)
Added event resolving
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/wm.c b/apps/wm.c
index 88c0451..262270a 100644
--- a/apps/wm.c
+++ b/apps/wm.c
@@ -1,6 +1,5 @@
// MIT License, Copyright (c) 2020 Marvin Borner
-#include <cpu.h>
#include <def.h>
#include <gui.h>
#include <input.h>
@@ -10,10 +9,11 @@
void onkey(u32 scancode)
{
- printf("KEY EVENT %d\n", scancode);
+ printf("WM KEY EVENT %d\n", scancode);
if (KEY_ALPHANUMERIC(scancode)) {
printf("ALPHANUMERIC!\n");
}
+ event_resolve();
}
int main(int argc, char **argv)
@@ -31,8 +31,7 @@ int main(int argc, char **argv)
gui_init("/font/spleen-16x32.psfu");
gui_write(vbe, 50, 50, text, "hallo");
- printf("onkey: %x\n", onkey);
- map(EVENT_KEYBOARD, onkey);
+ event_map(EVENT_KEYBOARD, onkey);
while (1) {
};