mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
InputManager: Fix unchangable input while paused/frame stepping
This commit is contained in:
parent
1289064316
commit
1109a81b8a
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue