Poll joysticks before emumain in OnIdle #582.

Call PollJoysticks() before entering the emulator in OnIdle for the
lowest input latency.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2019-12-24 21:53:41 +00:00
parent 7a8aeb9842
commit fb068e55c4
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 2 additions and 2 deletions

View File

@ -1070,6 +1070,8 @@ void GameArea::OnIdle(wxIdleEvent& event)
w->SetFocus();
}
mf->PollJoysticks();
if (!paused) {
HidePointer();
event.RequestMore();
@ -1102,8 +1104,6 @@ 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);