From e0eaff89b5f3f289bf5d560ea64b969c90d32d18 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Mar 2022 17:00:18 +0100 Subject: refactor: add cursor controller interface --- src/interfaces/cursor.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/interfaces/cursor.hpp (limited to 'src/interfaces') diff --git a/src/interfaces/cursor.hpp b/src/interfaces/cursor.hpp new file mode 100644 index 0000000..adab524 --- /dev/null +++ b/src/interfaces/cursor.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include "engine/data/vector2.hpp" + +class ICursorController +{ +public: + virtual void move(const Vector2 &direction, const uint32_t &amount) noexcept = 0; + + virtual void move_to(const Vector2 &position) noexcept = 0; + + [[nodiscard]] virtual Vector2 where() const noexcept = 0; + + static void hide(); + + static void show(); +}; -- cgit v1.2.3-18-g5258