From 9b6297c917290cb45508eaaa7dc6305034d67546 Mon Sep 17 00:00:00 2001 From: Lluciocc <114759545+Lluciocc@users.noreply.github.com> Date: Fri, 17 Apr 2026 01:02:07 +0200 Subject: [PATCH] Add input.h --- src/userland/libc/input.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/userland/libc/input.h diff --git a/src/userland/libc/input.h b/src/userland/libc/input.h new file mode 100644 index 0000000..3bd9c97 --- /dev/null +++ b/src/userland/libc/input.h @@ -0,0 +1,18 @@ +#ifndef INPUT_H +#define INPUT_H + +// Arrow keys +#define KEY_UP 17 +#define KEY_DOWN 18 +#define KEY_LEFT 19 +#define KEY_RIGHT 20 + +// controls +#define KEY_ENTER 10 +#define KEY_BACKSPACE 8 +#define KEY_ESCAPE 27 +#define KEY_SPACE 32 +#define KEY_ALT 22 +#define KEY_CTRL_L 21 +#define KEY_TAB 9 +