VirtualBox

Changeset 50998 in vbox for trunk/src/VBox/Devices/Input


Ignore:
Timestamp:
Apr 8, 2014 1:51:37 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93184
Message:

PS2M: Clear any buffered command response if command reissued.

File:
1 edited

Legend:

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

    r50806 r50998  
    450450    ps2mSetRate(pThis, 100);
    451451
    452     /* Accumulators and button status bits are cleared. */
     452    /* Event queue, eccumulators, and button status bits are cleared. */
    453453    ps2kClearQueue((GeneriQ *)&pThis->evtQ);
    454     //@todo accumulators/current state
     454    pThis->iAccumX = pThis->iAccumY = pThis->iAccumZ = pThis->fAccumB = 0;
    455455}
    456456
     
    507507
    508508    if (pThis->enmMode == AUX_MODE_RESET)
    509     {
    510509        /* In reset mode, do not respond at all. */
    511510        return VINF_SUCCESS;
    512     }
    513     else if (pThis->enmMode == AUX_MODE_WRAP)
     511
     512    /* If there's anything left in the command response queue, trash it. */
     513    ps2kClearQueue((GeneriQ *)&pThis->cmdQ);
     514
     515    if (pThis->enmMode == AUX_MODE_WRAP)
    514516    {
    515517        /* In wrap mode, bounce most data right back.*/
     
    859861
    860862#if 1
    861     /* Report the event and the throttle timer unless it's already running. */
     863    /* Report the event and start the throttle timer unless it's already running. */
    862864    if (!pThis->fThrottleActive)
    863865    {
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