diff options
Diffstat (limited to 'src/kernel/syscall/actions/sys_scancode.c')
-rw-r--r-- | src/kernel/syscall/actions/sys_scancode.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kernel/syscall/actions/sys_scancode.c b/src/kernel/syscall/actions/sys_scancode.c new file mode 100644 index 0000000..612326a --- /dev/null +++ b/src/kernel/syscall/actions/sys_scancode.c @@ -0,0 +1,11 @@ +#include <stdint.h> +#include <kernel/input/input.h> +#include <kernel/io/io.h> + +uint32_t sys_scancode() +{ + sti(); + uint32_t key = wait_scancode(); + cli(); + return key; +}
\ No newline at end of file |