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/engine/keycodes.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/engine/keycodes.hpp (limited to 'src/engine/keycodes.hpp') 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 -- cgit v1.2.3-18-g5258