aboutsummaryrefslogtreecommitdiff
path: root/apps/wm.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-16 17:13:32 +0200
committerMarvin Borner2020-08-16 17:13:32 +0200
commit0dd3f5e6f4f7607611ce23510858ab3597b5df9f (patch)
tree19fa08636168489fa097dea675ef38a27d913d4d /apps/wm.c
parent36e36fae364dec02999f58edbe997780d901b674 (diff)
Added events and map syscall
Diffstat (limited to 'apps/wm.c')
-rw-r--r--apps/wm.c8
1 files changed, 8 insertions, 0 deletions
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 <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();