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())
|
if (!bindings.empty())
|
||||||
{
|
{
|
||||||
AddBindings(bindings, InputAxisEventHandler{[pad_index, bind_index = bi.bind_index](float value) {
|
AddBindings(bindings, InputAxisEventHandler{[pad_index, bind_index = bi.bind_index](float value) {
|
||||||
if (!System::IsRunning())
|
if (!System::IsValid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Controller* c = System::GetController(pad_index);
|
Controller* c = System::GetController(pad_index);
|
||||||
|
@ -625,7 +625,7 @@ void InputManager::AddPadBindings(SettingsInterface& si, const std::string& sect
|
||||||
if (!bindings.empty())
|
if (!bindings.empty())
|
||||||
{
|
{
|
||||||
AddBindings(bindings, InputButtonEventHandler{[pad_index, macro_button_index](bool state) {
|
AddBindings(bindings, InputButtonEventHandler{[pad_index, macro_button_index](bool state) {
|
||||||
if (!System::IsRunning())
|
if (!System::IsValid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetMacroButtonState(pad_index, macro_button_index, state);
|
SetMacroButtonState(pad_index, macro_button_index, state);
|
||||||
|
|
Loading…
Reference in New Issue