diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-11 02:32:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-11 02:32:46 +0200 |
commit | d74228a9f508e96fd93be27cebd20df056e4ef4b (patch) | |
tree | 4e705be14b7f00516ca9ecd4ab2707e89e35b5a2 /editor/events.cpp | |
parent | e66bf2074088ff58495619e05cb89b143d5dfd92 (diff) |
editor: remove StaticArray usage
Diffstat (limited to 'editor/events.cpp')
-rw-r--r-- | editor/events.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/events.cpp b/editor/events.cpp index 2ba39ff5..a69d0e65 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -42,14 +42,14 @@ void app::clear_keys(key min_inclusive, key max_exclusive) { const auto idx = key(i); keys[idx] = false; - key_modifiers[i] = kmod_none; + key_modifiers.data[i] = kmod_none; } } void app::clear_keys() { keys_->reset(); - key_modifiers = StaticArray<key_COUNT, int>{ValueInit}; + key_modifiers = {}; } void app::on_mouse_move(const mouse_move_event& event) noexcept @@ -198,7 +198,7 @@ void app::on_key_up_down(const key_event& event, bool is_down) noexcept else { (*keys_)[x] = is_down; - key_modifiers[size_t(x)] = mods; + key_modifiers.data[size_t(x)] = mods; } } |