mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[client] spice: added new input:autoCapture
mode
This new mode if enabled (disabled by default) will cause the client to attempt to hold onto the mouse when a title/game has it captured in the guest. This is best effort and is not a replacement for full capture mode.
This commit is contained in:
@@ -296,6 +296,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true,
|
||||
},
|
||||
{
|
||||
.module = "input",
|
||||
.name = "autoCapture",
|
||||
.description = "Try to keep the mouse captured when needed",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false
|
||||
},
|
||||
|
||||
// spice options
|
||||
{
|
||||
@@ -462,6 +469,7 @@ bool config_load(int argc, char * argv[])
|
||||
params.mouseSens = option_get_int ("input", "mouseSens" );
|
||||
params.rawMouse = option_get_bool("input", "rawMouse" );
|
||||
params.mouseRedraw = option_get_bool("input", "mouseRedraw" );
|
||||
params.autoCapture = option_get_bool("input", "autoCapture" );
|
||||
|
||||
params.minimizeOnFocusLoss = option_get_bool("win", "minimizeOnFocusLoss");
|
||||
|
||||
|
Reference in New Issue
Block a user