From d0975319269d44935ae3814a45d4578783f2d510 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 16 May 2018 18:19:32 +1000 Subject: [PATCH] [client] allow the mouse and keyboard to operate early --- client/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/main.c b/client/main.c index f233e18d..faf6f944 100644 --- a/client/main.c +++ b/client/main.c @@ -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 // 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 @@ -915,10 +919,6 @@ int run() 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) { SDL_Event event;