[client] allow the mouse and keyboard to operate early

This commit is contained in:
Geoffrey McRae 2018-05-16 18:19:32 +10:00
parent d339ca3599
commit d097531926

View File

@ -873,6 +873,10 @@ int run()
} }
} }
// ensure mouse acceleration is identical in server mode
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
SDL_SetEventFilter(eventFilter, NULL);
// flag the host that we are starting up this is important so that // flag the host that we are starting up this is important so that
// the host wakes up if it is waiting on an interrupt, the host will // the host wakes up if it is waiting on an interrupt, the host will
// also send us the current mouse shape since we won't know it yet // also send us the current mouse shape since we won't know it yet
@ -915,10 +919,6 @@ int run()
break; break;
} }
// ensure mouse acceleration is identical in server mode
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
SDL_SetEventFilter(eventFilter, NULL);
while(state.running) while(state.running)
{ {
SDL_Event event; SDL_Event event;