Commit de5c2d0a1fd1668fe38bf88706c099b24407b079
1 parent
08af02e2
Fix range in the hid report descriptor for USB tablet.
Should prevent the ugly wrapping due to a typo in an earlier commit. Fix by Gregor (gg@seh.de). git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5232 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
hw/usb-hid.c
... | ... | @@ -306,9 +306,9 @@ static const uint8_t qemu_tablet_hid_report_descriptor[] = { |
306 | 306 | 0x09, 0x30, /* Usage (X) */ |
307 | 307 | 0x09, 0x31, /* Usage (Y) */ |
308 | 308 | 0x15, 0x00, /* Logical Minimum (0) */ |
309 | - 0x26, 0xfe, 0x7f, /* Logical Maximum (0x7fff) */ | |
309 | + 0x26, 0xff, 0x7f, /* Logical Maximum (0x7fff) */ | |
310 | 310 | 0x35, 0x00, /* Physical Minimum (0) */ |
311 | - 0x46, 0xfe, 0x7f, /* Physical Maximum (0x7fff) */ | |
311 | + 0x46, 0xff, 0x7f, /* Physical Maximum (0x7fff) */ | |
312 | 312 | 0x75, 0x10, /* Report Size (16) */ |
313 | 313 | 0x95, 0x02, /* Report Count (2) */ |
314 | 314 | 0x81, 0x02, /* Input (Data, Variable, Absolute) */ | ... | ... |