From 6119f1428b3615e4738a121c6acf343942107fd9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 5 Mar 2022 13:26:55 +0100 Subject: refactor: move input config to own file & improve cleanup --- src/game/input_configurator.tpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/game/input_configurator.tpp (limited to 'src/game/input_configurator.tpp') 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 +auto move_cursor(CursorController cursor_controller) +{ + return [cursor_controller]() + { + cursor_controller.move(1U); + }; +} + +} // namespace InputActions -- cgit v1.2.3-18-g5258