aboutsummaryrefslogtreecommitdiff
path: root/src/game/input_configurator.hpp
blob: 217c21e2768da04bac2fed6eea1abe4a0f62b242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once

#include "DI/auto_wirable.hpp"
#include "interfaces/direction.hpp"
#include "interfaces/input.hpp"
#include "interfaces/input_configurator.hpp"

#include "engine/user/cursor.hpp"

#include <array>
#include <memory>

namespace InputActions
{

template <Direction::value_type direction>
auto move_cursor(CursorController cursor_controller);

void exit_success();

} // namespace InputActions

class InputConfigurator
	: public IInputConfigurator,
	  public AutoWirable<IInputConfigurator, InputConfigurator, CursorController>
{
public:
	explicit InputConfigurator(std::shared_ptr<CursorController> cursor_controller);

	void configure(IInputHandler &input_handler) override;

private:
	std::shared_ptr<CursorController> _cursor_controller;
};

#include "input_configurator.tpp"