VirtualBox

Ignore:
Timestamp:
Aug 19, 2013 6:48:51 PM (11 years ago)
Author:
vboxsync
Message:

Devices/input: re-added mouse wheel to tablet device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp

    r47796 r47855  
    215215        if (s_drvTstMouse.pDrv)
    216216            s_drvTstMouse.pDrv->pfnPutEventAbs(s_drvTstMouse.pDrv, 300, 200, 1,
    217                                                0, 3);
     217                                               3, 3);
    218218        else
    219219            rc = VERR_PDM_MISSING_INTERFACE;
     
    231231            if (pUrb == &Urb)
    232232            {
    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 */)
    236238                    rc = VERR_GENERAL_FAILURE;
    237239            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette