mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 20:38:16 +00:00
[client] allow the mouse and keyboard to operate early
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user