diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-02 12:17:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | 87f55120f96d0f4f80b497dc9006d89df2dda125 (patch) | |
tree | 4aba3a77b268c9ff97b146e2a02626931d9a3122 /src/engine/engine.cpp | |
parent | 62164c0abd9c5f563fe8fe57d51b5dc003816c49 (diff) |
refactor: have cursor controller inverting input positions
Diffstat (limited to 'src/engine/engine.cpp')
-rw-r--r-- | src/engine/engine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index c7605b5..4775fe4 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -24,6 +24,8 @@ void CLIGameEngine::start() noexcept scene->enter(); + _cursor_controller->set_bounds(scene->size()); + auto game = _game_factory(scene, _cursor_controller, _user_input_observer); game->on_start(); |