From 9e90ccefdd8ca2b71083dcd602d1554c975c37f9 Mon Sep 17 00:00:00 2001 From: retro100 Date: Thu, 22 Apr 2021 16:31:53 +0200 Subject: [PATCH] fix4: update/scan the current pad/button states with WPAD_ScanPads(). --- src/gui/sdlmain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 82b8ed5..1f2da6f 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -1442,6 +1442,11 @@ void GFX_Events() { #ifdef HW_RVL // check for home button u32 btns; + + // Very important to update/scan the current pad/button states. + // Otherwise on newer libogc versions the button states are not updated. + WPAD_ScanPads(); + for(int i=0; i<4; i++) { btns = WPAD_ButtonsHeld(i);