VirtualBox

Changeset 72407 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 1, 2018 9:56:21 AM (7 years ago)
Author:
vboxsync
Message:

PS2K: Renamed variable to avoid partial duplicate.

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

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

    r72115 r72407  
    172172    uint8_t             u8LEDs;
    173173    /** Selected typematic delay/rate. */
    174     uint8_t             u8Typematic;
     174    uint8_t             u8TypematicCfg;
    175175    /** Usage code of current typematic key, if any. */
    176176    uint8_t             u8TypematicKey;
     
    666666    unsigned    period;
    667667
    668     pThis->u8Typematic = val;
     668    pThis->u8TypematicCfg = val;
    669669    /* The delay is easy: (1 + value) * 250 ms */
    670670    pThis->uTypematicDelay = (1 + ((val >> 5) & 3)) * 250;
     
    11921192                    pThis->keyQ.cUsed, pThis->keyQ.cSize);
    11931193    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,
    11951195                        pThis->enmTypematicState == KBD_TMS_DELAY ? "delay" : "repeat");
    11961196}
     
    13481348    SSMR3PutU8(pSSM, pThis->u8CurrCmd);
    13491349    SSMR3PutU8(pSSM, pThis->u8LEDs);
    1350     SSMR3PutU8(pSSM, pThis->u8Typematic);
     1350    SSMR3PutU8(pSSM, pThis->u8TypematicCfg);
    13511351    SSMR3PutU8(pSSM, pThis->u8TypematicKey);
    13521352    SSMR3PutU8(pSSM, pThis->u8Modifiers);
     
    13961396    SSMR3GetU8(pSSM, &pThis->u8CurrCmd);
    13971397    SSMR3GetU8(pSSM, &pThis->u8LEDs);
    1398     SSMR3GetU8(pSSM, &pThis->u8Typematic);
     1398    SSMR3GetU8(pSSM, &pThis->u8TypematicCfg);
    13991399    SSMR3GetU8(pSSM, &pThis->u8TypematicKey);
    14001400    SSMR3GetU8(pSSM, &pThis->u8Modifiers);
     
    14161416
    14171417    /* Recalculate the typematic delay/rate. */
    1418     ps2kSetupTypematic(pThis, pThis->u8Typematic);
     1418    ps2kSetupTypematic(pThis, pThis->u8TypematicCfg);
    14191419
    14201420    /* 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  
    479479    GEN_CHECK_OFF(PS2K, fNumLockOn);
    480480    GEN_CHECK_OFF(PS2K, u8ScanSet);
    481     GEN_CHECK_OFF(PS2K, u8Typematic);
     481    GEN_CHECK_OFF(PS2K, u8TypematicCfg);
    482482    GEN_CHECK_OFF(PS2K, enmTypematicState);
    483483    GEN_CHECK_OFF(PS2K, keyQ);
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