From 2c08b385e5565d7cf39bcca72cd29b56f5cee4bb Mon Sep 17 00:00:00 2001 From: RedPanda4552 Date: Mon, 24 Jul 2023 19:20:32 -0400 Subject: [PATCH] Pad: Revert back to old Constant 1 behavior Fixes pad detection in NBA 2K7, possibly others. --- pcsx2/SIO/Pad/PadDualshock2.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pcsx2/SIO/Pad/PadDualshock2.cpp b/pcsx2/SIO/Pad/PadDualshock2.cpp index 73489c08b6..914184720b 100644 --- a/pcsx2/SIO/Pad/PadDualshock2.cpp +++ b/pcsx2/SIO/Pad/PadDualshock2.cpp @@ -231,15 +231,26 @@ u8 PadDualshock2::Constant1(u8 commandByte) case 3: stage = commandByte; return 0x00; + case 5: + return 0x01; case 6: if (stage) { - return 0x00; + return 0x01; } else { return 0x02; } + case 7: + if (stage) + { + return 0x01; + } + else + { + return 0x00; + } case 8: g_Sio0.SetAcknowledge(false); return (stage ? 0x14 : 0x0a);