From e71f2274e4b06f986ef1d696f0a39f75edaf9627 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 27 Oct 2017 06:38:48 +1100 Subject: [PATCH] [client] mouse warp has to be set before the mouse mode is set to take effect at launch --- client/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.c b/client/main.c index eb64ca7c..e053b18e 100644 --- a/client/main.c +++ b/client/main.c @@ -385,14 +385,14 @@ int eventThread(void * arg) int mouseX = 0; int mouseY = 0; + // ensure mouse acceleration is identical in server mode + SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE); + // default to server mode bool serverMode = true; spice_mouse_mode(true); SDL_SetRelativeMouseMode(true); - // ensure mouse acceleration is identical in server mode - SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE); - SDL_Event event; while(state.running) {