VirtualBox

Changeset 54271 in vbox


Ignore:
Timestamp:
Feb 18, 2015 4:22:43 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98342
Message:

PS2M: Restrict X/Y range, report buttons in E9 command.

File:
1 edited

Legend:

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

    r54246 r54271  
    509509
    510510    /* Clamp the accumulated delta values to the allowed range. */
    511     dX = RT_MIN(RT_MAX(pThis->iAccumX, -256), 255);
    512     dY = RT_MIN(RT_MAX(pThis->iAccumY, -256), 255);
     511    dX = RT_MIN(RT_MAX(pThis->iAccumX, -255), 255);
     512    dY = RT_MIN(RT_MAX(pThis->iAccumY, -255), 255);
    513513    dZ = RT_MIN(RT_MAX(pThis->iAccumZ, -8), 7);
    514514
     
    602602        case ACMD_REQ_STATUS:
    603603            /* Report current status, sample rate, and resolution. */
    604             //@todo: buttons
    605             u8Val  = pThis->u8State;
     604            u8Val  = pThis->u8State | (pThis->fCurrB & PS2M_STD_BTN_MASK);
    606605            ps2kInsertQueue((GeneriQ *)&pThis->cmdQ, ARSP_ACK);
    607606            ps2kInsertQueue((GeneriQ *)&pThis->cmdQ, u8Val);
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