summaryrefslogtreecommitdiff
path: root/src/Input.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Input.hpp')
-rw-r--r--src/Input.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Input.hpp b/src/Input.hpp
index b6f24b6..98d8691 100644
--- a/src/Input.hpp
+++ b/src/Input.hpp
@@ -13,6 +13,7 @@ namespace MC {
// TODO: Add some more keys.
// TODO: I think some of these keys are "modifiers" under GLFW, and should be handled differently.
enum class Key {
+ Unknown,
A, B, C, D, E, F, G, H, I, J, K, L, M,
N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine,
@@ -21,14 +22,15 @@ enum class Key {
Space, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
};
-constexpr USize KeyCount = 65;
+constexpr USize KeyCount = 66;
static_assert(KeyCount == TO(USize, Key::F12) + 1, "Key count mismatch.");
enum class Mouse {
+ Unknown,
Left, Right, Middle,
};
-constexpr USize MouseCount = 3;
+constexpr USize MouseCount = 4;
static_assert(MouseCount == TO(USize, Mouse::Middle) + 1, "Mouse count mismatch.");
// The simple input system.