From eb66598c326862fd9dfc1899be4eac93f81a8023 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 19:23:55 +0200 Subject: fix: prevent A, B, C & D from being interpreted as arrow keys --- src/game/game.cpp | 2 +- src/game/keycodes.hpp | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 src/game/keycodes.hpp (limited to 'src/game') 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 -- cgit v1.2.3-18-g5258