diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-08 19:23:55 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:01 +0200 |
commit | eb66598c326862fd9dfc1899be4eac93f81a8023 (patch) | |
tree | 75c74e7d3a180952d9b2efc081aa4d4ef165da60 /src/engine/keycodes.hpp | |
parent | 0f9f82c875fef4c8057a994552aa7d7a702b411a (diff) |
fix: prevent A, B, C & D from being interpreted as arrow keys
Diffstat (limited to 'src/engine/keycodes.hpp')
-rw-r--r-- | src/engine/keycodes.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/engine/keycodes.hpp b/src/engine/keycodes.hpp new file mode 100644 index 0000000..163df52 --- /dev/null +++ b/src/engine/keycodes.hpp @@ -0,0 +1,15 @@ +#pragma once + +namespace keycodes +{ + +constexpr auto ENTER = 10; +constexpr auto ESCAPE = 27; +constexpr auto BACKSPACE = 127; + +constexpr auto UP_ARROW = -10; +constexpr auto DOWN_ARROW = -11; +constexpr auto RIGHT_ARROW = -12; +constexpr auto LEFT_ARROW = -13; + +} // namespace keycodes |