VirtualBox

Changeset 97828 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Dec 16, 2022 6:25:13 PM (2 years ago)
Author:
vboxsync
Message:

Addition: Linux: vboxguest: Mouse integration: invert vertical and horizontal scroll values on the guest side as it is done in upstream PS/2 mouse driver, bugref:10285:16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r97812 r97828  
    13211321            && fMouseFeatures & VMMDEV_MOUSE_GUEST_USES_FULL_STATE_PROTOCOL)
    13221322        {
    1323             input_report_rel(g_pInputDevice, REL_WHEEL,  dz);
    1324             input_report_rel(g_pInputDevice, REL_HWHEEL, dw);
     1323            /* Vertical and horizontal scroll values come as-is from GUI.
     1324             * Invert values here as it is done in PS/2 mouse driver, so
     1325             * scrolling direction will be exectly the same. */
     1326            input_report_rel(g_pInputDevice, REL_WHEEL,  -dz);
     1327            input_report_rel(g_pInputDevice, REL_HWHEEL, -dw);
    13251328
    13261329            input_report_key(g_pInputDevice, BTN_LEFT,   RT_BOOL(fButtons & VMMDEV_MOUSE_BUTTON_LEFT));
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