mirror of https://github.com/PCSX2/pcsx2.git
Pad: Change button query response depending on current mode
Fixes CoD 3 not understanding which buttons the controller has available
This commit is contained in:
parent
744cc4b705
commit
0b33df3341
|
@ -110,18 +110,32 @@ u8 PadDualshock2::Mystery(u8 commandByte)
|
||||||
|
|
||||||
u8 PadDualshock2::ButtonQuery(u8 commandByte)
|
u8 PadDualshock2::ButtonQuery(u8 commandByte)
|
||||||
{
|
{
|
||||||
switch (commandBytesReceived)
|
switch (this->currentMode)
|
||||||
{
|
{
|
||||||
case 3:
|
case Pad::Mode::DUALSHOCK2:
|
||||||
case 4:
|
case Pad::Mode::ANALOG:
|
||||||
return 0xff;
|
switch (commandBytesReceived)
|
||||||
case 5:
|
{
|
||||||
return 0x03;
|
case 3:
|
||||||
case 8:
|
case 4:
|
||||||
g_Sio0.SetAcknowledge(false);
|
return 0xff;
|
||||||
return 0x5a;
|
case 5:
|
||||||
|
return 0x03;
|
||||||
|
case 8:
|
||||||
|
g_Sio0.SetAcknowledge(false);
|
||||||
|
return 0x5a;
|
||||||
|
default:
|
||||||
|
return 0x00;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return 0x00;
|
switch (commandBytesReceived)
|
||||||
|
{
|
||||||
|
case 8:
|
||||||
|
g_Sio0.SetAcknowledge(false);
|
||||||
|
return 0x5a;
|
||||||
|
default:
|
||||||
|
return 0x00;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue