[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:
Geoffrey McRae
2021-01-08 19:41:10 +11:00
parent 6c8eba5f54
commit 2789e73296
3 changed files with 37 additions and 7 deletions

View File

@@ -138,6 +138,7 @@ struct AppParams
bool mouseRedraw;
int mouseSens;
bool rawMouse;
bool autoCapture;
};
struct CBRequest
@@ -215,6 +216,9 @@ struct CursorState
/* the local X & Y position */
struct DoublePoint pos;
/* the delta since last warp when in auto capture mode */
struct DoublePoint delta;
/* the scale factor for the mouse sensitiviy */
int sens;