From 0dd3f5e6f4f7607611ce23510858ab3597b5df9f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 16 Aug 2020 17:13:32 +0200 Subject: Added events and map syscall --- apps/wm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index b9cae91..f4dac44 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -7,6 +7,11 @@ #include #include +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(); -- cgit v1.2.3