From 6d66d5675d0fb78827bc47c49f9d4a1852c7255d Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 18:31:58 +0200 Subject: feat: implement command mode --- src/game/keycodes.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/game/keycodes.hpp (limited to 'src/game/keycodes.hpp') diff --git a/src/game/keycodes.hpp b/src/game/keycodes.hpp new file mode 100644 index 0000000..84ca5a7 --- /dev/null +++ b/src/game/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 = 65; +constexpr auto DOWN_ARROW = 66; +constexpr auto RIGHT_ARROW = 67; +constexpr auto LEFT_ARROW = 68; + +} // namespace keycodes -- cgit v1.2.3-18-g5258