VirtualBox

Changeset 97558 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Nov 15, 2022 10:04:54 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154589
Message:

Backed out r153813, r153818: Main: src-client: MouseImpl: Provide guest's absolute pointing mouse device with buttons state when mouse intergration is ON, bugref:10285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r96909 r97558  
    661661{
    662662    HRESULT hrc;
     663    /** If we are using the VMMDev to report absolute position but without
     664     * VMMDev IRQ support then we need to send a small "jiggle" to the emulated
     665     * relative mouse device to alert the guest to changes. */
     666    LONG cJiggle = 0;
     667
    663668    if (i_vmmdevCanAbs())
    664669    {
    665         /*
    666          * If we are using the VMMDev to report absolute position but without
    667          * VMMDev IRQ support then we need to send a small "jiggle" to the
    668          * emulated relative mouse device to alert the guest to changes.
    669          */
    670         LONG cJiggle = 0;
    671 
    672670        /*
    673671         * Send the absolute mouse position to the VMM device.
     
    678676            cJiggle = !fUsesVMMDevEvent;
    679677        }
    680 
    681         /*
    682          * Since VMMDev does not deal with mouse buttons state, also
    683          * send relative or absolute pointing event to emulated mouse
    684          * device once it supports it.
    685          *
    686          * Relative pointing events are sent to: PS/2 Mouse, USB Mouse,
    687          * combination of both (PS/2 and USB Mouse).
    688          *
    689          * Absolute ones to: USB Tablet, USB Multi-Touch Tablet,
    690          * USB MT TouchScreen and TouchPad.
    691          *
    692          * IMPORTANT: Do not send relative event to devices which can
    693          * do both relative and absolute pointing since it may result
    694          * in unexpected behaviour.
    695          *
    696          * r=bird: Not entirely convinced this is a correct fix.
    697          *
    698          * See @bugref{10285} for background and more theories.
    699          */
    700         if (!i_deviceCanAbs())
    701             hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
    702         else
    703             hrc = i_reportAbsEventToMouseDev(x, y, dz, dw, fButtons);
     678        hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
    704679    }
    705680    else
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