- Timestamp:
- Jun 13, 2013 8:29:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r44528 r46516 197 197 typedef struct USBHIDT_REPORT 198 198 { 199 uint8_t rid; 199 200 uint8_t btn; 200 201 int8_t dz; 202 int8_t dummy; 201 203 uint16_t cx; 202 204 uint16_t cy; … … 300 302 * properly. 301 303 */ 304 #define REPORTID_MOUSE 1 305 302 306 static const uint8_t g_UsbHidTReportDesc[] = 303 307 { … … 305 309 /* Usage */ 0x09, 0x02, /* Mouse */ 306 310 /* Collection */ 0xA1, 0x01, /* Application */ 311 /* Report ID */ 0x85, REPORTID_MOUSE, 307 312 /* Usage */ 0x09, 0x01, /* Pointer */ 308 313 /* Collection */ 0xA1, 0x00, /* Physical */ … … 325 330 /* Report Count */ 0x95, 0x01, /* 1 */ 326 331 /* Input */ 0x81, 0x06, /* Data, Value, Relative, Bit field */ 332 /* Report Count */ 0x95, 0x01, /* 1 (padding byte) */ 333 /* Input */ 0x81, 0x03, /* Constant, Value, Absolute, Bit field */ 327 334 /* Usage Page */ 0x05, 0x01, /* Generic Desktop */ 328 335 /* Usage */ 0x09, 0x30, /* X */ … … 725 732 if (isAbsolute) 726 733 { 734 pReport->t.rid = REPORTID_MOUSE; 727 735 pReport->t.btn = pAccumulated->btn; 728 736 pReport->t.cx = pAccumulated->dX;
Note:
See TracChangeset
for help on using the changeset viewer.