mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[client] input: abstract guest input backends
Introduce LG_InputOps and route keyboard and mouse input through the active video transport when it provides an input backend. Keep SPICE as the fallback and force it while the SPICE display is active. Add atomic shared/exclusive locking for safe backend changes.
This commit is contained in:
@@ -241,7 +241,12 @@ void app_mouseTrace(const char * file, unsigned int line,
|
||||
(void)format;
|
||||
}
|
||||
|
||||
bool purespice_mouseMotion(int32_t x, int32_t y)
|
||||
bool lgInput_available(void)
|
||||
{
|
||||
return g_params.useSpiceInput;
|
||||
}
|
||||
|
||||
bool lgInput_mouseMotion(int32_t x, int32_t y)
|
||||
{
|
||||
push(EV_MOTION, x, y, false);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user