mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +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
@ -385,14 +385,14 @@ int eventThread(void * arg)
|
|||||||
int mouseX = 0;
|
int mouseX = 0;
|
||||||
int mouseY = 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
|
// default to server mode
|
||||||
bool serverMode = true;
|
bool serverMode = true;
|
||||||
spice_mouse_mode(true);
|
spice_mouse_mode(true);
|
||||||
SDL_SetRelativeMouseMode(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;
|
SDL_Event event;
|
||||||
while(state.running)
|
while(state.running)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user