VirtualBox

Changeset 47796 in vbox


Ignore:
Timestamp:
Aug 16, 2013 10:31:34 AM (11 years ago)
Author:
vboxsync
Message:

Devices/Input: reverting r88027 as several guests did not like it.

Location:
trunk/src/VBox/Devices/Input
Files:
2 edited

Legend:

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

    r47768 r47796  
    132132            int32_t     dy;
    133133            int32_t     dz;
    134             int32_t     dw;
    135134        } Relative;
    136135        struct
     
    246245    int8_t      dy;
    247246    int8_t      dz;
    248     int8_t      dw;
    249247} USBHIDM_REPORT, *PUSBHIDM_REPORT;
    250248
     
    387385    /* Usage */                     0x09, 0x31,     /* Y */
    388386    /* Usage */                     0x09, 0x38,     /* Z (wheel) */
    389     /* Usage Page */                0x05, 0x0C,     /* Consumer Devices */
    390     /* Usage */                     0x0A, 0x38, 0x02,/* AC Pan (horizontal wheel) */
    391387    /* Logical Minimum */           0x15, 0x81,     /* -127 */
    392388    /* Logical Maximum */           0x25, 0x7F,     /* +127 */
    393389    /* Report Size */               0x75, 0x08,     /* 8 */
    394     /* Report Count */              0x95, 0x04,     /* 4 */
     390    /* Report Count */              0x95, 0x03,     /* 3 */
    395391    /* Input */                     0x81, 0x06,     /* Data, Value, Relative, Bit field */
    396392    /* End Collection */            0xC0,
     
    12121208        pReport->m.dy       = clamp_i8(pAccumulated->u.Relative.dy);
    12131209        pReport->m.dz       = clamp_i8(pAccumulated->u.Relative.dz);
    1214         pReport->m.dw       = clamp_i8(pAccumulated->u.Relative.dw);
    12151210   
    12161211        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,
    12191214                 pReport->m.fButtons, cbCopy));
    12201215        break;
     
    14401435    pThis->PtrDelta.u.Relative.dy      += dy;
    14411436    pThis->PtrDelta.u.Relative.dz      -= dz;    /* Inverted! */
    1442     pThis->PtrDelta.u.Relative.dw      += dw;
    14431437
    14441438    /* Send a report if possible. */
  • trunk/src/VBox/Devices/Input/testcase/tstUsbMouse.cpp

    r47768 r47796  
    185185                    || Urb.abData[1] != 123  /* x */
    186186                    || Urb.abData[2] != 240  /* 256 - y */
    187                     || Urb.abData[3] != 255  /* z */
    188                     || Urb.abData[4] != 255  /* w */)
     187                    || Urb.abData[3] != 255  /* z */)
    189188                    rc = VERR_GENERAL_FAILURE;
    190189            }
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