all repos — mgba @ a6cbd7ddfe4f463b108c3e0eab87ff8da7091c14

mGBA Game Boy Advance Emulator

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

Agustín Azzinnari aazzinnari@gmail.com
Tue, 09 Aug 2016 19:56:38 -0300
commit

a6cbd7ddfe4f463b108c3e0eab87ff8da7091c14

parent

68393718eb8b023f0ea27479615921c629c91ebc

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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; }