Changeset 54271 in vbox
- Timestamp:
- Feb 18, 2015 4:22:43 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 98342
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/PS2M.cpp
r54246 r54271 509 509 510 510 /* Clamp the accumulated delta values to the allowed range. */ 511 dX = RT_MIN(RT_MAX(pThis->iAccumX, -25 6), 255);512 dY = RT_MIN(RT_MAX(pThis->iAccumY, -25 6), 255);511 dX = RT_MIN(RT_MAX(pThis->iAccumX, -255), 255); 512 dY = RT_MIN(RT_MAX(pThis->iAccumY, -255), 255); 513 513 dZ = RT_MIN(RT_MAX(pThis->iAccumZ, -8), 7); 514 514 … … 602 602 case ACMD_REQ_STATUS: 603 603 /* Report current status, sample rate, and resolution. */ 604 //@todo: buttons 605 u8Val = pThis->u8State; 604 u8Val = pThis->u8State | (pThis->fCurrB & PS2M_STD_BTN_MASK); 606 605 ps2kInsertQueue((GeneriQ *)&pThis->cmdQ, ARSP_ACK); 607 606 ps2kInsertQueue((GeneriQ *)&pThis->cmdQ, u8Val);
Note:
See TracChangeset
for help on using the changeset viewer.