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/user/cursor.hpp | |
| parent | 62164c0abd9c5f563fe8fe57d51b5dc003816c49 (diff) | |
refactor: have cursor controller inverting input positions
Diffstat (limited to 'src/engine/user/cursor.hpp')
| -rw-r--r-- | src/engine/user/cursor.hpp | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp index de8c3ae..199c86b 100644 --- a/src/engine/user/cursor.hpp +++ b/src/engine/user/cursor.hpp @@ -2,6 +2,7 @@  #include "interfaces/cursor.hpp" +#include "engine/data/bounds.hpp"  #include "engine/data/vector2.hpp"  #include <fmt/core.h> @@ -48,6 +49,12 @@ public:  	void show() noexcept override; +	void set_bounds(const Bounds &bounds) noexcept override; +  private:  	Vector2 _position; +	Bounds _bounds; + +	[[nodiscard]] auto _invert_position_y(const Vector2 &position) const noexcept +		-> Vector2;  }; | 
