Qt: Reset button status after turning off autofire (#334)
AgustÃn Azzinnari aazzinnari@gmail.com
Tue, 09 Aug 2016 19:56:38 -0300
2 files changed,
6 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -20,6 +20,7 @@ - Qt: Fix bug in software renderer scaling
- 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
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -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; }