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:
parent
e98d89310e
commit
7a8aeb9842
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue