Merge pull request #17393 from hrydgard/tilt-button-fix

Prevent tilt-controlled left/right dpad butons from getting stuck
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-05-02 23:40:15 +02:00
commit 47fb86dbe4
1 file changed
+1 -1
+1 -1
View File
@@ -139,7 +139,7 @@ void GenerateDPadEvent(int digitalX, int digitalY) {
static const int dir[4] = { CTRL_RIGHT, CTRL_DOWN, CTRL_LEFT, CTRL_UP };
if (digitalX == 0) {
__CtrlUpdateButtons(tiltButtonsDown & (CTRL_RIGHT | CTRL_LEFT), 0);
__CtrlUpdateButtons(0, tiltButtonsDown & (CTRL_RIGHT | CTRL_LEFT));
tiltButtonsDown &= ~(CTRL_LEFT | CTRL_RIGHT);
}