From 19d9a04e36e7fb96eebe89e24311408460c29a70 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 30 Sep 2024 11:08:46 -0400 Subject: reorganize files --- src/keyboard.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/keyboard.hpp (limited to 'src/keyboard.hpp') diff --git a/src/keyboard.hpp b/src/keyboard.hpp new file mode 100644 index 0000000..694ff89 --- /dev/null +++ b/src/keyboard.hpp @@ -0,0 +1,32 @@ +#ifndef KEYBOARD_HPP +#define KEYBOARD_HPP + +#include + +#define K_CONTROL_L -1 +#define K_SHIFT_L -2 +#define K_ALT_L -3 +#define K_CAPS -4 +#define K_NUM -5 +#define K_SCROLL -6 +#define K_SHIFT_R -7 +#define K_ESCAPE -8 +#define K_F1 -10 +#define K_F2 -11 +#define K_F3 -12 +#define K_F4 -13 +#define K_F5 -14 +#define K_F6 -15 +#define K_F7 -16 +#define K_F8 -17 +#define K_F9 -18 +#define K_F10 -19 +#define K_F11 -20 +#define K_F12 -21 + +void keyboard_initialize(); + +std::optional keyboard_read(); + +#endif // KEYBOARD_HPP + -- cgit v1.2.3