VirtualBox

Changeset 96908 in vbox for trunk


Ignore:
Timestamp:
Sep 27, 2022 10:18:39 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153818
Message:

Main/MouseImpl: My 0.02$ and some cleanups. bugref:10285

File:
1 edited

Legend:

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

    r96906 r96908  
    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 
    668663    if (i_vmmdevCanAbs())
    669664    {
     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
    670672        /*
    671673         * Send the absolute mouse position to the VMM device.
     
    677679        }
    678680
    679         /* Since VMMDev does not deal with mouse buttons state, also
     681        /*
     682         * Since VMMDev does not deal with mouse buttons state, also
    680683         * send relative or absolute pointing event to emulated mouse
    681684         * device once it supports it.
     
    687690         * USB MT TouchScreen and TouchPad.
    688691         *
    689          * IMPORTANT: Avoid sending relative event to devices which can
    690          * do both relative and absolute pointing since it will result
    691          * in misbehavior. */
     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         */
    692700        if (!i_deviceCanAbs())
    693701            hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, 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