Qt: Reset button status after turning off autofire (#334)

This commit is contained in:
Agustín Azzinnari 2016-08-09 19:56:38 -03:00 committed by endrift
parent 68393718eb
commit a6cbd7ddfe
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@ Bugfixes:
- Debugger: Fix GDB breakpoints
- Wii: Fix framelimiting after a slowdown
- PSP2: Fix gyroscope direction
- Qt: Fix hanging key press after disabling autofire
Misc:
- 3DS: Use blip_add_delta_fast for a small speed improvement
- OpenGL: Log shader compilation failure

View File

@ -665,6 +665,11 @@ void GameController::setAutofire(int key, bool enable) {
if (key >= GBA_KEY_MAX || key < 0) {
return;
}
if (!enable && m_autofireStatus[key]) {
keyReleased(key);
}
m_autofire[key] = enable;
m_autofireStatus[key] = 0;
}