mirror of https://github.com/mgba-emu/mgba.git
Qt: Reset button status after turning off autofire (#334)
This commit is contained in:
parent
68393718eb
commit
a6cbd7ddfe
1
CHANGES
1
CHANGES
|
@ -20,6 +20,7 @@ Bugfixes:
|
||||||
- Debugger: Fix GDB breakpoints
|
- Debugger: Fix GDB breakpoints
|
||||||
- Wii: Fix framelimiting after a slowdown
|
- Wii: Fix framelimiting after a slowdown
|
||||||
- PSP2: Fix gyroscope direction
|
- PSP2: Fix gyroscope direction
|
||||||
|
- Qt: Fix hanging key press after disabling autofire
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||||
- OpenGL: Log shader compilation failure
|
- OpenGL: Log shader compilation failure
|
||||||
|
|
|
@ -665,6 +665,11 @@ void GameController::setAutofire(int key, bool enable) {
|
||||||
if (key >= GBA_KEY_MAX || key < 0) {
|
if (key >= GBA_KEY_MAX || key < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!enable && m_autofireStatus[key]) {
|
||||||
|
keyReleased(key);
|
||||||
|
}
|
||||||
|
|
||||||
m_autofire[key] = enable;
|
m_autofire[key] = enable;
|
||||||
m_autofireStatus[key] = 0;
|
m_autofireStatus[key] = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue