aboutsummaryrefslogtreecommitdiff
path: root/src/game/input_configurator.hpp
blob: fa501c7b4fd9c636f7c82ddb9ad1784c0c9c6288 (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
#pragma once

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

#include "engine/data/vector2.hpp"

#include <array>
#include <memory>

namespace InputActions
{

auto move_cursor(const Vector2 &direction, ICursorController &cursor_controller);

void exit_success();

} // namespace InputActions

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

	void configure(IInputHandler &input_handler) override;

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