VirtualBox

Changeset 47672 in vbox


Ignore:
Timestamp:
Aug 12, 2013 11:17:48 AM (11 years ago)
Author:
vboxsync
Message:

Frontend,Devices: touch input updates

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r47656 r47672  
    14871487        paNewContacts[i].status = MT_CONTACT_S_DIRTY;
    14881488        paNewContacts[i].oldId  = 0; /* Not used. */
     1489        if (paNewContacts[i].flags & MT_CONTACT_F_IN_CONTACT)
     1490        {
     1491            paNewContacts[i].flags |= MT_CONTACT_F_IN_RANGE;
     1492        }
    14891493    }
    14901494
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r47571 r47672  
    935935                    currentTouchPoint.x(), currentTouchPoint.y(), iTouchPointState));
    936936
    937         contacts[i++] = RT_MAKE_U64_FROM_U16((uint16_t)currentTouchPoint.x(),
    938                                              (uint16_t)currentTouchPoint.y(),
     937        contacts[i++] = RT_MAKE_U64_FROM_U16((uint16_t)currentTouchPoint.x() + 1,
     938                                             (uint16_t)currentTouchPoint.y() + 1,
    939939                                             RT_MAKE_U16(touchPoint.id(), iTouchPointState),
    940940                                             0);
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