Skip to content

Commit

Permalink
maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
mlthelama authored and github-actions[bot] committed Feb 13, 2024
1 parent fcb517f commit cc9ae55
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/hook/menu_control_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cc9ae55

Please sign in to comment.