summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-hidpp20.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-03-24 21:47:05 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-03-24 21:47:05 +0100
commit9cccf4cf2206a7ab4ebb75bd9ba87ec8a9d33328 (patch)
tree4da282a7fdbcd64f054b391900071e39ede07882 /hw/usb/hid-logitech-hidpp20.c
parentf0a5825c53db1f659f897eec62506f7763ee6280 (diff)
downloadqemu-9cccf4cf2206a7ab4ebb75bd9ba87ec8a9d33328.tar.gz
unifying: mouse compat with Win guests, other mouse fixes
Two stupid mistakes slipped in while refactoring the HID report generation in 3615170bd1ed6f09f878a8b538321044efddd8e0 ("unifying: fix mouse report format, DRY"). This makes evtest in Linux report mouse events again and openbox seems happy too. Another mistake went in the calculation of the Y field, the high and low bits of Y were accidentally swapped. As the descriptor for interface 2 (mouse, etc.) includes Report IDs, this ID must be prepended to the HID payload for mice reports. This makes the mouse function for Windows guests. (See section 8.1 of HID 1.11). Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-hidpp20.c')
0 files changed, 0 insertions, 0 deletions