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,6 +110,10 @@ u8 PadDualshock2::Mystery(u8 commandByte)
|
|||
|
||||
u8 PadDualshock2::ButtonQuery(u8 commandByte)
|
||||
{
|
||||
switch (this->currentMode)
|
||||
{
|
||||
case Pad::Mode::DUALSHOCK2:
|
||||
case Pad::Mode::ANALOG:
|
||||
switch (commandBytesReceived)
|
||||
{
|
||||
case 3:
|
||||
|
@ -123,6 +127,16 @@ u8 PadDualshock2::ButtonQuery(u8 commandByte)
|
|||
default:
|
||||
return 0x00;
|
||||
}
|
||||
default:
|
||||
switch (commandBytesReceived)
|
||||
{
|
||||
case 8:
|
||||
g_Sio0.SetAcknowledge(false);
|
||||
return 0x5a;
|
||||
default:
|
||||
return 0x00;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
u8 PadDualshock2::Poll(u8 commandByte)
|
||||
|
|
Loading…
Reference in New Issue