VirtualBox

Changeset 96906 in vbox


Ignore:
Timestamp:
Sep 27, 2022 6:10:42 PM (2 years ago)
Author:
vboxsync
Message:

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

    r96407 r96906  
    676676            cJiggle = !fUsesVMMDevEvent;
    677677        }
    678         hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
     678
     679        /* Since VMMDev does not deal with mouse buttons state, also
     680         * send relative or absolute pointing event to emulated mouse
     681         * device once it supports it.
     682         *
     683         * Relative pointing events are sent to: PS/2 Mouse, USB Mouse,
     684         * combination of both (PS/2 and USB Mouse).
     685         *
     686         * Absolute ones to: USB Tablet, USB Multi-Touch Tablet,
     687         * USB MT TouchScreen and TouchPad.
     688         *
     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        if (!i_deviceCanAbs())
     693            hrc = i_reportRelEventToMouseDev(cJiggle, 0, dz, dw, fButtons);
     694        else
     695            hrc = i_reportAbsEventToMouseDev(x, y, dz, dw, fButtons);
    679696    }
    680697    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