mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix input event threading regression (fixes #3116)
This commit is contained in:
parent
5479ab1307
commit
845d69e817
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue