diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 11:06:36 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-28 11:06:36 -0400 |
commit | b480537a274ed15d71a59f5babf194a651c78910 (patch) | |
tree | e353fb85424e6c677f985e70956074b023fcffc4 /keyboard.hpp | |
parent | fffe9352660f5fa672be0b50e13b657e10ce975f (diff) |
keyboard input buffering
Diffstat (limited to 'keyboard.hpp')
-rw-r--r-- | keyboard.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/keyboard.hpp b/keyboard.hpp index 40b57c9..694ff89 100644 --- a/keyboard.hpp +++ b/keyboard.hpp @@ -1,7 +1,32 @@ #ifndef KEYBOARD_HPP #define KEYBOARD_HPP +#include <optional> + +#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<char> keyboard_read(); + #endif // KEYBOARD_HPP |