mirror of https://github.com/PCSX2/pcsx2.git
LilyPad PS1 analog mode fix
Fixes issue where "Use analog mode if possible - PS1 only" would enable analog mode when playing games that don't support it.
This commit is contained in:
parent
60ece1ee72
commit
d736dc1a0a
|
@ -773,9 +773,6 @@ void ResetPad(int port, int slot) {
|
||||||
pads[port][slot].umask[0] = pads[port][slot].umask[1] = 0xFF;
|
pads[port][slot].umask[0] = pads[port][slot].umask[1] = 0xFF;
|
||||||
// Sets up vibrate variable.
|
// Sets up vibrate variable.
|
||||||
ResetVibrate(port, slot);
|
ResetVibrate(port, slot);
|
||||||
if (config.padConfigs[port][slot].autoAnalog && !ps2e) {
|
|
||||||
pads[port][slot].mode = MODE_ANALOG;
|
|
||||||
}
|
|
||||||
pads[port][slot].initialized = 1;
|
pads[port][slot].initialized = 1;
|
||||||
|
|
||||||
pads[port][slot].enabled = enabled;
|
pads[port][slot].enabled = enabled;
|
||||||
|
@ -1176,6 +1173,9 @@ u8 CALLBACK PADpoll(u8 value) {
|
||||||
// CONFIG_MODE
|
// CONFIG_MODE
|
||||||
case 0x43:
|
case 0x43:
|
||||||
if (pad->config) {
|
if (pad->config) {
|
||||||
|
if (pad->mode == MODE_DIGITAL && config.padConfigs[query.port][query.slot].autoAnalog && !ps2e) {
|
||||||
|
pad->mode = MODE_ANALOG;
|
||||||
|
}
|
||||||
// In config mode. Might not actually be leaving it.
|
// In config mode. Might not actually be leaving it.
|
||||||
SET_RESULT(ConfigExit);
|
SET_RESULT(ConfigExit);
|
||||||
DEBUG_OUT(0xF3);
|
DEBUG_OUT(0xF3);
|
||||||
|
|
Loading…
Reference in New Issue