aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/init.c4
-rw-r--r--apps/wm.c7
2 files changed, 3 insertions, 8 deletions
diff --git a/apps/init.c b/apps/init.c
index 07977ee..ba3e15a 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -1,12 +1,8 @@
// MIT License, Copyright (c) 2020 Marvin Borner
-#include <conv.h>
#include <def.h>
-#include <gui.h>
-#include <mem.h>
#include <print.h>
#include <sys.h>
-#include <vesa.h>
int main(int argc, char **argv)
{
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) {
};