aboutsummaryrefslogtreecommitdiff
path: root/src/game/input_configurator.tpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/input_configurator.tpp')
-rw-r--r--src/game/input_configurator.tpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/input_configurator.tpp b/src/game/input_configurator.tpp
new file mode 100644
index 0000000..f3c9482
--- /dev/null
+++ b/src/game/input_configurator.tpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "input_configurator.hpp"
+
+namespace InputActions
+{
+
+template <Direction::value_type direction>
+auto move_cursor(CursorController cursor_controller)
+{
+ return [cursor_controller]()
+ {
+ cursor_controller.move<direction>(1U);
+ };
+}
+
+} // namespace InputActions