aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user/cursor.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-23 20:16:07 +0200
committerHampusM <hampus@hampusmat.com>2022-06-23 20:16:07 +0200
commitafa22dc6450a7f2341c432604d5e50735d6830c7 (patch)
treeb2d3b9a27f8403b1b1117ae7dfef951b14b3c013 /src/engine/user/cursor.hpp
parent0f9d874b6af4698234be96de1fddad15aa882a1d (diff)
perf: reduce cout flushing
Diffstat (limited to 'src/engine/user/cursor.hpp')
-rw-r--r--src/engine/user/cursor.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp
index ace47ee..16d37e3 100644
--- a/src/engine/user/cursor.hpp
+++ b/src/engine/user/cursor.hpp
@@ -39,9 +39,10 @@ class CursorController : public ICursorController,
public:
CursorController() noexcept;
- void move(const Vector2 &direction, const uint32_t &amount) noexcept override;
+ void move(const Vector2 &direction, const uint32_t &amount, bool flush_cout) noexcept
+ override;
- void move_to(const Vector2 &position) noexcept override;
+ void move_to(const Vector2 &position, bool flush_cout) noexcept override;
[[nodiscard]] auto where() const noexcept -> Vector2 override;
@@ -49,11 +50,11 @@ public:
void update_position(const Vector2 &position) noexcept override;
- void hide() noexcept override;
+ void hide(bool flush_cout) noexcept override;
- void show() noexcept override;
+ void show(bool flush_cout) noexcept override;
- void set_cursor_style(CursorStyle cursor_style) noexcept override;
+ void set_cursor_style(CursorStyle cursor_style, bool flush_cout) noexcept override;
void set_bounds(const Bounds &bounds) noexcept override;