mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 11:17:54 +00:00
[client] mouse warp has to be set before the mouse mode is set to take effect at launch
This commit is contained in:
parent
54df567b84
commit
e71f2274e4
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue