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:
parent
def5d3e486
commit
020daad85f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue