blob: 3846d50b2b6e6706fc5228cf06353fbab122d424 (
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/input.hpp"
#include "interfaces/input_configurator.hpp"
#include "engine/data/vector2.hpp"
#include "engine/user/cursor.hpp"
#include <array>
#include <memory>
namespace InputActions
{
auto move_cursor(const Vector2 &direction, const 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;
};
|