Changeset 47796 in vbox
- Timestamp:
- Aug 16, 2013 10:31:34 AM (11 years ago)
- Location:
- trunk/src/VBox/Devices/Input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r47768 r47796 132 132 int32_t dy; 133 133 int32_t dz; 134 int32_t dw;135 134 } Relative; 136 135 struct … … 246 245 int8_t dy; 247 246 int8_t dz; 248 int8_t dw;249 247 } USBHIDM_REPORT, *PUSBHIDM_REPORT; 250 248 … … 387 385 /* Usage */ 0x09, 0x31, /* Y */ 388 386 /* Usage */ 0x09, 0x38, /* Z (wheel) */ 389 /* Usage Page */ 0x05, 0x0C, /* Consumer Devices */390 /* Usage */ 0x0A, 0x38, 0x02,/* AC Pan (horizontal wheel) */391 387 /* Logical Minimum */ 0x15, 0x81, /* -127 */ 392 388 /* Logical Maximum */ 0x25, 0x7F, /* +127 */ 393 389 /* Report Size */ 0x75, 0x08, /* 8 */ 394 /* Report Count */ 0x95, 0x0 4, /* 4*/390 /* Report Count */ 0x95, 0x03, /* 3 */ 395 391 /* Input */ 0x81, 0x06, /* Data, Value, Relative, Bit field */ 396 392 /* End Collection */ 0xC0, … … 1212 1208 pReport->m.dy = clamp_i8(pAccumulated->u.Relative.dy); 1213 1209 pReport->m.dz = clamp_i8(pAccumulated->u.Relative.dz); 1214 pReport->m.dw = clamp_i8(pAccumulated->u.Relative.dw);1215 1210 1216 1211 cbCopy = sizeof(pReport->m); 1217 LogRel3(("Rel event, dx=%d, dy=%d, dz=%d, dw=%d,fButtons=%02x, report size %d\n",1218 pReport->m.dx, pReport->m.dy, pReport->m.dz, pReport->m.dw,1212 LogRel3(("Rel event, dx=%d, dy=%d, dz=%d, fButtons=%02x, report size %d\n", 1213 pReport->m.dx, pReport->m.dy, pReport->m.dz, 1219 1214 pReport->m.fButtons, cbCopy)); 1220 1215 break; … … 1440 1435 pThis->PtrDelta.u.Relative.dy += dy; 1441 1436 pThis->PtrDelta.u.Relative.dz -= dz; /* Inverted! */ 1442 pThis->PtrDelta.u.Relative.dw += dw;1443 1437 1444 1438 /* Send a report if possible. */ -
trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp
r47768 r47796 185 185 || Urb.abData[1] != 123 /* x */ 186 186 || Urb.abData[2] != 240 /* 256 - y */ 187 || Urb.abData[3] != 255 /* z */ 188 || Urb.abData[4] != 255 /* w */) 187 || Urb.abData[3] != 255 /* z */) 189 188 rc = VERR_GENERAL_FAILURE; 190 189 }
Note:
See TracChangeset
for help on using the changeset viewer.