From 22f1e92d16dbf7986977c323c0a2985fead88bfd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Apr 2023 09:04:14 +0200 Subject: a --- editor/update.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index eb4029dc..97d77ffb 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -98,6 +98,11 @@ void app::do_mouse_up_down(uint8_t button, bool is_down, int mods) _editor.on_release(); } +void app::do_mouse_scroll(int offset) +{ + _z_level = (int8_t)Math::clamp(_z_level + offset, 0, 2); +} + void app::do_rotate(bool backward) { if (auto* ed = _editor.current_tile_editor()) -- cgit v1.2.3