From 1109a81b8ae27efb5ff9e68063b1fc8685d0c5f0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 5 Aug 2022 18:14:38 +1000 Subject: [PATCH] InputManager: Fix unchangable input while paused/frame stepping --- src/frontend-common/input_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/input_manager.cpp b/src/frontend-common/input_manager.cpp index 57401b7b7..7b83f14e1 100644 --- a/src/frontend-common/input_manager.cpp +++ b/src/frontend-common/input_manager.cpp @@ -608,7 +608,7 @@ void InputManager::AddPadBindings(SettingsInterface& si, const std::string& sect if (!bindings.empty()) { AddBindings(bindings, InputAxisEventHandler{[pad_index, bind_index = bi.bind_index](float value) { - if (!System::IsRunning()) + if (!System::IsValid()) return; Controller* c = System::GetController(pad_index); @@ -625,7 +625,7 @@ void InputManager::AddPadBindings(SettingsInterface& si, const std::string& sect if (!bindings.empty()) { AddBindings(bindings, InputButtonEventHandler{[pad_index, macro_button_index](bool state) { - if (!System::IsRunning()) + if (!System::IsValid()) return; SetMacroButtonState(pad_index, macro_button_index, state);