VirtualBox

Changeset 48358 in vbox


Ignore:
Timestamp:
Sep 6, 2013 2:14:32 PM (11 years ago)
Author:
vboxsync
Message:

PS2M: Implemented wrap mode.

File:
1 edited

Legend:

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

    r48214 r48358  
    523523//LogRel(("aux: cmd=0x%02X, active cmd=0x%02X\n", cmd, pThis->u8CurrCmd));
    524524
     525    if (pThis->enmMode == AUX_MODE_RESET)
     526    {
     527        /* In reset mode, do not respond at all. */
     528        return VINF_SUCCESS;
     529    }
     530    else if (pThis->enmMode == AUX_MODE_WRAP)
     531    {
     532        /* In wrap mode, bounce most data right back.*/
     533        if (cmd == ACMD_RESET || cmd == ACMD_RESET_WRAP)
     534            ;   /* Handle as regular commands. */
     535        else
     536        {
     537            ps2kInsertQueue((GeneriQ *)&pThis->cmdQ, cmd);
     538            return VINF_SUCCESS;
     539        }
     540    }
     541
    525542    switch (cmd)
    526543    {
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