VirtualBox

Changeset 19654 in vbox for trunk/src


Ignore:
Timestamp:
May 13, 2009 12:30:58 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47250
Message:

Main and Devices/absolute mouse: do not send movement events to the virutal PS/2 device if the guest can read them from VMMDev

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r19300 r19654  
    657657                else
    658658                    pThis->mouseCapabilities &= ~VMMDEV_MOUSEGUESTNEEDSHOSTCUR;
     659                if (mouseStatus->mouseFeatures & VBOXGUEST_MOUSE_GUEST_USES_VMMDEV)
     660                    pThis->mouseCapabilities |= VMMDEV_MOUSEGUESTUSESVMMDEV;
     661                else
     662                    pThis->mouseCapabilities &= ~VMMDEV_MOUSEGUESTUSESVMMDEV;
    659663
    660664                /*
  • trunk/src/VBox/Main/MouseImpl.cpp

    r19614 r19654  
    323323         * see if the position has really changed since the last mouse event.
    324324         */
    325         if ((mLastAbsX == mouseXAbs) && (mLastAbsY == mouseYAbs))
     325        if (   ((mLastAbsX == mouseXAbs) && (mLastAbsY == mouseYAbs))
     326            || (mouseCaps & VBOXGUEST_MOUSE_GUEST_USES_VMMDEV))
    326327            vrc = mpDrv->pUpPort->pfnPutEvent(mpDrv->pUpPort, 0, 0, dz,
    327328                                              fButtons);
Note: See TracChangeset for help on using the changeset viewer.

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