diff options
Diffstat (limited to 'editor/events.cpp')
| -rw-r--r-- | editor/events.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/events.cpp b/editor/events.cpp index 1df7163b..cfa0b904 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -101,10 +101,10 @@ void app::on_key_up_down(const floormat::key_event& event, bool is_down) noexcep case SDLK_ESCAPE: return key::quit; }); if (x != key::COUNT) - _keys[x] = is_down; + keys[x] = is_down; } else - _keys = {}; + keys = {}; } void app::on_text_input_event(const floormat::text_input_event& event) noexcept @@ -113,7 +113,7 @@ void app::on_text_input_event(const floormat::text_input_event& event) noexcept accessor(Containers::StringView, text) } e = {event.text}; if (_imgui.handleTextInputEvent(e)) - _keys = {}; + keys = {}; } void app::on_viewport_event(const Math::Vector2<int>& size) noexcept @@ -125,7 +125,7 @@ void app::on_focus_out() noexcept { cursor.pixel = std::nullopt; recalc_cursor_tile(); - _keys = {}; + keys = {}; } void app::on_mouse_leave() noexcept |
