From 4e19f7adbf911f34d5a0c1d04d83ce259f6baeec Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Mon, 24 Jul 2017 00:46:00 +0100 Subject: [PATCH] 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 3075ec2203f25adb49c0283f05ae4b8c33251127 Closes #1965. --- plugins/LilyPad/LilyPad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LilyPad/LilyPad.cpp b/plugins/LilyPad/LilyPad.cpp index 1d997c7a33..99c00655f0 100644 --- a/plugins/LilyPad/LilyPad.cpp +++ b/plugins/LilyPad/LilyPad.cpp @@ -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 {