From b29a89807e03db2c45e5b0967636e4ac5a25ff39 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 13 Jun 2019 21:15:21 +0200 Subject: [PATCH] cellPad: set len to 0 if pads are being intercepted by the system --- rpcs3/Emu/Cell/Modules/cellPad.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/Cell/Modules/cellPad.cpp b/rpcs3/Emu/Cell/Modules/cellPad.cpp index 5eae26b405..a53d168007 100644 --- a/rpcs3/Emu/Cell/Modules/cellPad.cpp +++ b/rpcs3/Emu/Cell/Modules/cellPad.cpp @@ -131,6 +131,14 @@ error_code cellPadGetData(u32 port_no, vm::ptr data) if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED)) 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; d1Initial = pad->m_digital_1; d2Initial = pad->m_digital_2;