VirtualBox

Changeset 68052 in vbox


Ignore:
Timestamp:
Jul 19, 2017 3:51:09 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8778: Double click not working with precision touchpad (user report)
Try to fix sending delayed button clicks to the PS/2 mouse device emulation.

We try to restrict input sent through the PS/2 mouse device to no more than
one packet every 50ms. To do this, we accumulate events. However we were
missing button clicks where both the press and the release occurred within
the timer interval. Additionally we were resetting the button to released
in some circumstances.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/PS2M.cpp

    r65648 r68052  
    557557    {
    558558        pThis->fReportedB = pThis->fAccumB;
    559         pThis->fAccumB    = 0;
     559        pThis->fAccumB    = pThis->fCurrB;
    560560    }
    561561}
     
    848848#else
    849849    /* If more movement is accumulated, report it and restart the timer. */
    850     uHaveEvents = pThis->iAccumX | pThis->iAccumY | pThis->iAccumZ | (pThis->fCurrB != pThis->fReportedB);
     850    uHaveEvents = pThis->iAccumX | pThis->iAccumY | pThis->iAccumZ | (pThis->fAccumB != pThis->fReportedB);
    851851    LogFlowFunc(("Have%s events\n", uHaveEvents ? "" : " no"));
    852852
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