diff options
author | Marvin Borner | 2020-08-25 22:11:04 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-25 22:11:04 +0200 |
commit | ec5c4a7398fcfcfb5a809292cbe029b1bb69a320 (patch) | |
tree | dc1cba8e1fa543c2a0f98955a35d0d7e40762d02 /libc/inc/sys.h | |
parent | d2017fca3efefdb4d514f2b356855a0fda1fccfd (diff) |
Added mouse driver and better event system
Diffstat (limited to 'libc/inc/sys.h')
-rw-r--r-- | libc/inc/sys.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/inc/sys.h b/libc/inc/sys.h index 77a8069..ebb3836 100644 --- a/libc/inc/sys.h +++ b/libc/inc/sys.h @@ -4,6 +4,9 @@ #ifndef SYS_H #define SYS_H +#define KEYBOARD_MAGIC 0x555555 +#define MOUSE_MAGIC 0xaaaaaa + enum sys { SYS_LOOP, // To infinity and beyond (debug)! SYS_MALLOC, // Allocate memory @@ -27,6 +30,21 @@ struct message { void *data; }; +struct event_keyboard { + int magic; + int press; + int scancode; +}; + +struct event_mouse { + int magic; + int diff_x; + int diff_y; + int but1; + int but2; + int but3; +}; + #if defined(userspace) int sys0(enum sys num); |