mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -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();
|
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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user