Qt: Fix input event threading regression (fixes #3116)

This commit is contained in:
Vicki Pfau 2024-01-21 17:28:16 -08:00
parent 5479ab1307
commit 845d69e817
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ int InputController::pollEvents() {
activeButtons |= im.mapAxes(pad->currentAxes());
activeButtons |= im.mapHats(pad->currentHats());
}
QReadLocker l(&m_eventsLock);
for (int i = 0; i < GBA_KEY_MAX; ++i) {
if ((activeButtons & (1 << i)) && hasPendingEvent(i)) {
activeButtons ^= 1 << i;