From 7a8aeb984219bcc3aa0dbfcb55db256b35ba8b80 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 24 Dec 2019 13:54:53 +0000 Subject: [PATCH] Poll joysticks even when emulator is paused. Call mainframe->PollJoysticks() on every pass through OnIdle, not just when game is not paused. Fix #582. Signed-off-by: Rafael Kitover --- src/wx/panel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index 4b5d4e8b..0d866993 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -1095,7 +1095,6 @@ void GameArea::OnIdle(wxIdleEvent& event) CheckLinkConnection(); #endif - mf->PollJoysticks(); } else { was_paused = true; @@ -1103,6 +1102,8 @@ void GameArea::OnIdle(wxIdleEvent& event) SetExtraStyle(GetExtraStyle() & ~wxWS_EX_PROCESS_IDLE); } + mf->PollJoysticks(); + if (do_rewind && emusys->emuWriteMemState) { if (!rewind_mem) { rewind_mem = (char*)malloc(NUM_REWINDS * REWIND_SIZE);