Changeset 72407 in vbox for trunk/src/VBox
- Timestamp:
- Jun 1, 2018 9:56:21 AM (7 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/PS2K.cpp
r72115 r72407 172 172 uint8_t u8LEDs; 173 173 /** Selected typematic delay/rate. */ 174 uint8_t u8Typematic ;174 uint8_t u8TypematicCfg; 175 175 /** Usage code of current typematic key, if any. */ 176 176 uint8_t u8TypematicKey; … … 666 666 unsigned period; 667 667 668 pThis->u8Typematic = val;668 pThis->u8TypematicCfg = val; 669 669 /* The delay is easy: (1 + value) * 250 ms */ 670 670 pThis->uTypematicDelay = (1 + ((val >> 5) & 3)) * 250; … … 1192 1192 pThis->keyQ.cUsed, pThis->keyQ.cSize); 1193 1193 if (pThis->enmTypematicState != KBD_TMS_IDLE) 1194 pHlp->pfnPrintf(pHlp, "Active typematic key %02X (%s)\n", pThis->u8Typematic ,1194 pHlp->pfnPrintf(pHlp, "Active typematic key %02X (%s)\n", pThis->u8TypematicKey, 1195 1195 pThis->enmTypematicState == KBD_TMS_DELAY ? "delay" : "repeat"); 1196 1196 } … … 1348 1348 SSMR3PutU8(pSSM, pThis->u8CurrCmd); 1349 1349 SSMR3PutU8(pSSM, pThis->u8LEDs); 1350 SSMR3PutU8(pSSM, pThis->u8Typematic );1350 SSMR3PutU8(pSSM, pThis->u8TypematicCfg); 1351 1351 SSMR3PutU8(pSSM, pThis->u8TypematicKey); 1352 1352 SSMR3PutU8(pSSM, pThis->u8Modifiers); … … 1396 1396 SSMR3GetU8(pSSM, &pThis->u8CurrCmd); 1397 1397 SSMR3GetU8(pSSM, &pThis->u8LEDs); 1398 SSMR3GetU8(pSSM, &pThis->u8Typematic );1398 SSMR3GetU8(pSSM, &pThis->u8TypematicCfg); 1399 1399 SSMR3GetU8(pSSM, &pThis->u8TypematicKey); 1400 1400 SSMR3GetU8(pSSM, &pThis->u8Modifiers); … … 1416 1416 1417 1417 /* Recalculate the typematic delay/rate. */ 1418 ps2kSetupTypematic(pThis, pThis->u8Typematic );1418 ps2kSetupTypematic(pThis, pThis->u8TypematicCfg); 1419 1419 1420 1420 /* Fake key up events for keys that were held down at the time the state was saved. */ -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r72195 r72407 479 479 GEN_CHECK_OFF(PS2K, fNumLockOn); 480 480 GEN_CHECK_OFF(PS2K, u8ScanSet); 481 GEN_CHECK_OFF(PS2K, u8Typematic );481 GEN_CHECK_OFF(PS2K, u8TypematicCfg); 482 482 GEN_CHECK_OFF(PS2K, enmTypematicState); 483 483 GEN_CHECK_OFF(PS2K, keyQ);
Note:
See TracChangeset
for help on using the changeset viewer.