mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
cellPad: set len to 0 if pads are being intercepted by the system
This commit is contained in:
parent
3f00b485a0
commit
b29a89807e
1 changed files with 8 additions and 0 deletions
|
@ -131,6 +131,14 @@ error_code cellPadGetData(u32 port_no, vm::ptr<CellPadData> data)
|
||||||
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
|
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
|
||||||
return CELL_PAD_ERROR_NO_DEVICE;
|
return CELL_PAD_ERROR_NO_DEVICE;
|
||||||
|
|
||||||
|
const PadInfo& rinfo = handler->GetInfo();
|
||||||
|
|
||||||
|
if (rinfo.system_info & CELL_PAD_INFO_INTERCEPTED)
|
||||||
|
{
|
||||||
|
data->len = CELL_PAD_LEN_NO_CHANGE;
|
||||||
|
return CELL_OK;
|
||||||
|
}
|
||||||
|
|
||||||
u16 d1Initial, d2Initial;
|
u16 d1Initial, d2Initial;
|
||||||
d1Initial = pad->m_digital_1;
|
d1Initial = pad->m_digital_1;
|
||||||
d2Initial = pad->m_digital_2;
|
d2Initial = pad->m_digital_2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue