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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2019-12-24 13:54:53 +00:00
parent e98d89310e
commit 7a8aeb9842
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 2 additions and 1 deletions

View File

@ -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);