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/game | |
parent | 0f9f82c875fef4c8057a994552aa7d7a702b411a (diff) |
fix: prevent A, B, C & D from being interpreted as arrow keys
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cpp | 2 | ||||
-rw-r--r-- | src/game/keycodes.hpp | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 879f096..73ab7f5 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -2,7 +2,7 @@ #include "engine/data/bounds.hpp" #include "engine/escape.hpp" -#include "game/keycodes.hpp" +#include "engine/keycodes.hpp" #include "util/algorithm.hpp" #include "util/string.hpp" diff --git a/src/game/keycodes.hpp b/src/game/keycodes.hpp deleted file mode 100644 index 84ca5a7..0000000 --- a/src/game/keycodes.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -namespace keycodes -{ - -constexpr auto ENTER = 10; -constexpr auto ESCAPE = 27; -constexpr auto BACKSPACE = 127; - -constexpr auto UP_ARROW = 65; -constexpr auto DOWN_ARROW = 66; -constexpr auto RIGHT_ARROW = 67; -constexpr auto LEFT_ARROW = 68; - -} // namespace keycodes |