diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-23 18:12:39 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:59 +0200 |
commit | 18e1db1fb8692752f64d3912c3b5ff1818be9028 (patch) | |
tree | 38ccd9b4f29e5b2fa0fc07f84b425aa80378301a /src/engine/user/cursor.hpp | |
parent | 65ca89da7933b5927e31ca6f29f28a24b2838ebe (diff) |
refactor: replace last subscriber patterned code
Diffstat (limited to 'src/engine/user/cursor.hpp')
-rw-r--r-- | src/engine/user/cursor.hpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp index ae6fe3c..de8c3ae 100644 --- a/src/engine/user/cursor.hpp +++ b/src/engine/user/cursor.hpp @@ -38,7 +38,7 @@ public: void move(const Vector2 &direction, const uint32_t &amount) noexcept override; - void move_to(const Vector2 &position, bool silent) noexcept override; + void move_to(const Vector2 &position) noexcept override; [[nodiscard]] auto where() const noexcept -> Vector2 override; @@ -48,13 +48,6 @@ public: void show() noexcept override; - void subscribe(const Event &event, const Subscriber &subscriber) noexcept override; - - void notify_subscribers(const Event &event, const Context &context) - const noexcept override; - private: Vector2 _position; - - std::unordered_map<CursorEvent, std::vector<Subscriber>> _subscribers; }; |