VirtualBox

Changeset 47418 in vbox


Ignore:
Timestamp:
Jul 26, 2013 11:08:18 AM (12 years ago)
Author:
vboxsync
Message:

Devices/Input/UsbMouse: multi-touch co-ordinate fix.

File:
1 edited

Legend:

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

    r47397 r47418  
    927927
    928928        cbCopy = sizeof(pReport->mt);
    929         LogRel3(("Multi-touch event, x=%u, y=%u, report size %d\n",
    930                  pReport->mt.x, pReport->mt.y, cbCopy));
     929        LogRel3(("Multi-touch event, x=%u, y=%u, cContact=%u, fContact=%02x, report size %d\n",
     930                 (unsigned)pReport->mt.x, (unsigned)pReport->mt.y,
     931                 (unsigned)pReport->mt.cContact, (unsigned)pReport->mt.fContact,
     932                 cbCopy));
    931933        break;
    932934    }
     
    10461048     */
    10471049    pThis->PtrDelta.u.MultiTouch.fContact = fContact;
    1048     pThis->PtrDelta.u.MultiTouch.x        = x;
    1049     pThis->PtrDelta.u.MultiTouch.y        = y;
     1050    pThis->PtrDelta.u.MultiTouch.x        = x >> pThis->u8CoordShift;
     1051    pThis->PtrDelta.u.MultiTouch.y        = y >> pThis->u8CoordShift;
    10501052    pThis->PtrDelta.u.MultiTouch.cContact = cContact;
    10511053
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