aboutsummaryrefslogtreecommitdiff
path: root/src/game/keycodes.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-08 18:31:58 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commit6d66d5675d0fb78827bc47c49f9d4a1852c7255d (patch)
treee8cbf56d895c6d4acc496fffb076938e822dba40 /src/game/keycodes.hpp
parent7e84d664079d9c407bdf94861825bb05ccf1b0f7 (diff)
feat: implement command mode
Diffstat (limited to 'src/game/keycodes.hpp')
-rw-r--r--src/game/keycodes.hpp15
1 files changed, 15 insertions, 0 deletions
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