diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 09:04:14 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 09:04:14 +0200 |
| commit | 22f1e92d16dbf7986977c323c0a2985fead88bfd (patch) | |
| tree | 0fb1d9de02e3f187eb40f3bfe4763e25c283b45a /editor/update.cpp | |
| parent | 3e5b43638dac74a88918fecc139b4533bd1c0643 (diff) | |
a
Diffstat (limited to 'editor/update.cpp')
| -rw-r--r-- | editor/update.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()) |
