lilypad: Fix button detection issue in Kung Fu Panda

Kung Fu Panda becomes stuck at an autosave warning screen since it
cannot detect button presses correctly. This fixes the issue, though
potentially it may negatively affect some other games (see #1831,
unfortunately no game titles weren't mentioned).

The issue was introduced in commit 3075ec2203

Closes #1965.
This commit is contained in:
Jonathan Li 2017-07-24 00:46:00 +01:00
parent bd5e54e825
commit 4e19f7adbf
1 changed files with 1 additions and 1 deletions

View File

@ -1364,7 +1364,7 @@ u8 CALLBACK PADpoll(u8 value)
// QUERY_DS2_ANALOG_MODE
case 0x41:
// Right? Wrong? No clue.
if (pad->mode == MODE_PS1_MOUSE || pad->mode == MODE_NEGCON) {
if (pad->mode == MODE_DIGITAL || pad->mode == MODE_PS1_MOUSE || pad->mode == MODE_NEGCON) {
queryMaskMode[1] = queryMaskMode[2] = queryMaskMode[3] = 0;
queryMaskMode[6] = 0x00;
} else {