diff options
author | Marvin Borner | 2020-08-16 17:13:32 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-16 17:13:32 +0200 |
commit | 0dd3f5e6f4f7607611ce23510858ab3597b5df9f (patch) | |
tree | 19fa08636168489fa097dea675ef38a27d913d4d /apps/wm.c | |
parent | 36e36fae364dec02999f58edbe997780d901b674 (diff) |
Added events and map syscall
Diffstat (limited to 'apps/wm.c')
-rw-r--r-- | apps/wm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -7,6 +7,11 @@ #include <sys.h> #include <vesa.h> +void onkey() +{ + printf("KEY EVENT\n"); +} + void main(char **argv) { struct vbe *vbe = (struct vbe *)argv[0]; @@ -20,6 +25,9 @@ void main(char **argv) gui_init("/font/spleen-16x32.psfu"); gui_write(vbe, 50, 50, text, "hallo"); + printf("onkey: %x\n", onkey); + map(EVENT_KEYBOARD, onkey); + while (1) { }; exit(); |