RSX: properly handle disconnected pads

This commit is contained in:
Megamouse 2018-01-18 18:07:49 +01:00 committed by kd-11
parent 42f56e357c
commit d238791b7d

View File

@ -74,7 +74,7 @@ namespace rsx
} }
const PadInfo& rinfo = handler->GetInfo(); const PadInfo& rinfo = handler->GetInfo();
if (rinfo.max_connect == 0 || !rinfo.now_connect) if (rinfo.max_connect == 0)
return selection_code::error; return selection_code::error;
std::array<bool, 8> button_state; std::array<bool, 8> button_state;
@ -85,7 +85,7 @@ namespace rsx
if (Emu.IsStopped()) if (Emu.IsStopped())
return selection_code::canceled; return selection_code::canceled;
if (Emu.IsPaused()) if (Emu.IsPaused() || !rinfo.now_connect)
{ {
std::this_thread::sleep_for(10ms); std::this_thread::sleep_for(10ms);
continue; continue;