summaryrefslogtreecommitdiffhomepage
path: root/editor/app.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-26 16:11:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-26 16:11:47 +0200
commit1649e034b553022a95f4e347b863aa2823bbdf12 (patch)
tree68db83c3eb95742418b906e819afa4da1ebef641 /editor/app.hpp
parent6029b7938aa3cf6be507ef58ca35c0bca24b8596 (diff)
refactor how cursor.in_imgui is handled
Diffstat (limited to 'editor/app.hpp')
-rw-r--r--editor/app.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index 79e0642b..4cdaff60 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -70,11 +70,13 @@ private:
void maybe_initialize_chunk_(const chunk_coords& pos, chunk& c);
- void do_mouse_move(global_coords pos);
-
+ void do_mouse_move();
+ void do_mouse_up_down(std::uint8_t button, bool is_down);
void do_camera(float dt);
+ void do_keys();
+
void reset_camera_offset();
- void recalc_cursor_tile();
+ void update_cursor_tile(const std::optional<Vector2i>& pixel);
void draw_cursor_tile();
void draw_wireframe_quad(global_coords pt);