mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[idd] input: preserve reports under backpressure
Move named pipe writes off the LGMP input worker so a stalled LGInput endpoint cannot block queue draining or lease maintenance. Coalesce motion only under queue pressure while preserving mode, button, wheel, and keyboard transitions. Reset HID state after discontinuities and carry all 32 mouse button bits through the pipe and HID reports.
This commit is contained in:
@@ -27,8 +27,8 @@ class IInputSink
|
||||
public:
|
||||
virtual ~IInputSink() = default;
|
||||
|
||||
virtual bool IsAvailable() const = 0;
|
||||
virtual uint64_t GetGeneration() const = 0;
|
||||
// Odd states are available; a state change invalidates in-flight input.
|
||||
virtual uint64_t GetState() const = 0;
|
||||
virtual bool SendMouseRelative(int32_t deltaX, int32_t deltaY,
|
||||
int32_t wheel, uint32_t buttons) = 0;
|
||||
virtual bool SendMouseAbsolute(uint16_t x, uint16_t y,
|
||||
|
||||
Reference in New Issue
Block a user