Changeset 47855 in vbox for trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp
- Timestamp:
- Aug 19, 2013 6:48:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp
r47796 r47855 215 215 if (s_drvTstMouse.pDrv) 216 216 s_drvTstMouse.pDrv->pfnPutEventAbs(s_drvTstMouse.pDrv, 300, 200, 1, 217 0, 3);217 3, 3); 218 218 else 219 219 rc = VERR_PDM_MISSING_INTERFACE; … … 231 231 if (pUrb == &Urb) 232 232 { 233 if ( *(uint16_t *)&Urb.abData[2] != 150 /* x >> 1 */ 234 || *(uint16_t *)&Urb.abData[4] != 100 /* y >> 1 */ 235 || Urb.abData[0] != 3 /* Buttons */) 233 if ( Urb.abData[0] != 3 /* Buttons */ 234 || (int8_t)Urb.abData[1] != -1 /* dz */ 235 || (int8_t)Urb.abData[2] != -3 /* dw */ 236 || *(uint16_t *)&Urb.abData[4] != 150 /* x >> 1 */ 237 || *(uint16_t *)&Urb.abData[6] != 100 /* y >> 1 */) 236 238 rc = VERR_GENERAL_FAILURE; 237 239 }
Note:
See TracChangeset
for help on using the changeset viewer.