From cc9ae55e4d781a66e672e99f157227412c02fd93 Mon Sep 17 00:00:00 2001 From: mlthelama Date: Tue, 13 Feb 2024 22:32:42 +0000 Subject: [PATCH] maintain --- src/hook/menu_control_hook.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hook/menu_control_hook.cpp b/src/hook/menu_control_hook.cpp index 994c010..c52443a 100644 --- a/src/hook/menu_control_hook.cpp +++ b/src/hook/menu_control_hook.cpp @@ -82,7 +82,7 @@ namespace hook { if (a_event && *a_event && is_menu_open(ui)) { auto* inventory_manager = RE::Inventory3DManager::GetSingleton(); auto* control_map = RE::ControlMap::GetSingleton(); - + for (auto* event = *a_event; event; event = event->next) { if (inventory_manager && inventory_manager->GetRuntimeData().zoomProgress != 0.f) { scaleform::stats_inventory_menu::close(); @@ -115,12 +115,13 @@ namespace hook { if (!button->IsDown()) { continue; } - + if (control_map->GetRuntimeData().textEntryCount > 0) { - logger::trace("continue. due text input, count {}"sv, control_map->GetRuntimeData().textEntryCount); + logger::trace("continue. due text input, count {}"sv, + control_map->GetRuntimeData().textEntryCount); continue; } - + if (key_input->get_inventory_open_key_combo().contains(key) || key_input->get_inventory_close_key_combo().contains(key)) { key_input->add_key_down(key);