ConfigMenu: ignore first input data

This commit is contained in:
Maschell 2024-03-23 08:29:03 +01:00
parent 076b4b8058
commit 175a4fde53

View File

@ -134,7 +134,8 @@ void ConfigUtils::displayMenu() {
WPAD_CHAN_2,
WPAD_CHAN_3};
auto startTime = OSGetTime();
auto startTime = OSGetTime();
bool skipFirstInput = true;
while (true) {
baseInput.reset();
if (vpadInput.update(1280, 720)) {
@ -145,6 +146,12 @@ void ConfigUtils::displayMenu() {
baseInput.combine(wpadInput);
}
}
if (skipFirstInput) {
skipFirstInput = false;
baseInput.lastData = baseInput.data;
}
baseInput.process();
WUPSConfigSimplePadData simpleData;