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

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