On 3/31/26 19:08, Soumyajyotii Ssarkar wrote:
Implement HID feature report handlers (GET_REPORT/SET_REPORT) for
report ID 0x02 to allow guests to configure wheel/pan resolution
multipliers.
Multiplier encoding:
- Bits [1:0]: wheel_multiplier (0=+-1, 1=+-4, 2=+-8, 3=+-16)
- Bits [3:2]: pan_multiplier (0=+-1, 1=+-4, 2=+-8, 3=+-16)
Supports flexible payload formats (with/without report ID byte).
Allows Windows guests to dynamically adjust scroll sensitivity without
driver installation.
Signed-off-by: Soumyajyotii Ssarkar <[email protected]>
---
hw/usb/dev-hid.c | 65 ++++++++++++++++++++++++++++++++++++------
include/hw/input/hid.h | 2 ++
2 files changed, 59 insertions(+), 8 deletions(-)
LGTM,
Reviewed-by: Helge Deller <[email protected]>