From d748a6f54ce7af45afde487936d5a02cb2a91b05 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 15:08:57 +0200 Subject: Added event resolving --- libc/inc/sys.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/inc') diff --git a/libc/inc/sys.h b/libc/inc/sys.h index e776f44..2014da9 100644 --- a/libc/inc/sys.h +++ b/libc/inc/sys.h @@ -13,7 +13,8 @@ enum sys { SYS_EXEC, SYS_EXIT, SYS_MAP, - SYS_UNMAP + SYS_UNMAP, + SYS_RESOLVE }; enum event { EVENT_KEYBOARD, EVENT_MOUSE }; @@ -41,8 +42,9 @@ int sysv(enum sys num, ...); while (1) { \ } \ } -#define map(id, func) sys2(SYS_MAP, (int)id, (int)func) -#define unmap(id, func) sys2(SYS_UNMAP, (int)id, (int)func) +#define event_map(id, func) sys2(SYS_MAP, (int)id, (int)func) +#define event_unmap(id, func) sys2(SYS_UNMAP, (int)id, (int)func) +#define event_resolve() sys0(SYS_RESOLVE) // TODO: Find method making event_resolve obsolete #endif #endif -- cgit v1.2.3