mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-11 06:43:56 +00:00
[client] alert the user when capture mode is on or off
This commit is contained in:
parent
ee9213da76
commit
86207993b8
1 changed files with 7 additions and 0 deletions
|
@ -526,6 +526,13 @@ int eventFilter(void * userdata, SDL_Event * event)
|
||||||
SDL_SetRelativeMouseMode(serverMode);
|
SDL_SetRelativeMouseMode(serverMode);
|
||||||
DEBUG_INFO("Server Mode: %s", serverMode ? "on" : "off");
|
DEBUG_INFO("Server Mode: %s", serverMode ? "on" : "off");
|
||||||
|
|
||||||
|
if (state.lgr)
|
||||||
|
state.lgr->on_alert(
|
||||||
|
state.lgrData,
|
||||||
|
LG_ALERT_INFO,
|
||||||
|
serverMode ? "Capture Enabled" : "Capture Disabled"
|
||||||
|
);
|
||||||
|
|
||||||
if (!serverMode)
|
if (!serverMode)
|
||||||
realignGuest = true;
|
realignGuest = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue