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:
parent
7a8aeb9842
commit
fb068e55c4
|
@ -1070,6 +1070,8 @@ void GameArea::OnIdle(wxIdleEvent& event)
|
||||||
w->SetFocus();
|
w->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mf->PollJoysticks();
|
||||||
|
|
||||||
if (!paused) {
|
if (!paused) {
|
||||||
HidePointer();
|
HidePointer();
|
||||||
event.RequestMore();
|
event.RequestMore();
|
||||||
|
@ -1102,8 +1104,6 @@ void GameArea::OnIdle(wxIdleEvent& event)
|
||||||
SetExtraStyle(GetExtraStyle() & ~wxWS_EX_PROCESS_IDLE);
|
SetExtraStyle(GetExtraStyle() & ~wxWS_EX_PROCESS_IDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
mf->PollJoysticks();
|
|
||||||
|
|
||||||
if (do_rewind && emusys->emuWriteMemState) {
|
if (do_rewind && emusys->emuWriteMemState) {
|
||||||
if (!rewind_mem) {
|
if (!rewind_mem) {
|
||||||
rewind_mem = (char*)malloc(NUM_REWINDS * REWIND_SIZE);
|
rewind_mem = (char*)malloc(NUM_REWINDS * REWIND_SIZE);
|
||||||
|
|
Loading…
Reference in New Issue