Fix joy accels when emulation is paused.

Start the joystick polling timer on pause and stop it on resume, so that
accelerators bound to joystick events are still processed.

Followup on def5d3e4.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2020-09-02 00:50:45 +00:00
parent def5d3e486
commit 020daad85f
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 4 additions and 0 deletions

View File

@ -969,6 +969,8 @@ void GameArea::Pause()
if (loaded != IMAGE_UNKNOWN)
soundPause();
wxGetApp().frame->StartJoyPollTimer();
}
void GameArea::Resume()
@ -982,6 +984,8 @@ void GameArea::Resume()
if (loaded != IMAGE_UNKNOWN)
soundResume();
wxGetApp().frame->StopJoyPollTimer();
SetFocus();
}