mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-29 06:39:48 -06:00
RSX: properly handle disconnected pads
This commit is contained in:
parent
42f56e357c
commit
d238791b7d
@ -74,7 +74,7 @@ namespace rsx
|
||||
}
|
||||
|
||||
const PadInfo& rinfo = handler->GetInfo();
|
||||
if (rinfo.max_connect == 0 || !rinfo.now_connect)
|
||||
if (rinfo.max_connect == 0)
|
||||
return selection_code::error;
|
||||
|
||||
std::array<bool, 8> button_state;
|
||||
@ -85,7 +85,7 @@ namespace rsx
|
||||
if (Emu.IsStopped())
|
||||
return selection_code::canceled;
|
||||
|
||||
if (Emu.IsPaused())
|
||||
if (Emu.IsPaused() || !rinfo.now_connect)
|
||||
{
|
||||
std::this_thread::sleep_for(10ms);
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user