Changeset 40281 in vbox for trunk/src/VBox/Devices/Input
- Timestamp:
- Feb 28, 2012 7:55:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/PS2K.cpp
r40280 r40281 848 848 static int PS2KProcessKeyEvent(PPS2K pThis, uint8_t u8HidCode, bool fKeyDown) 849 849 { 850 inti = 0;850 unsigned int i = 0; 851 851 key_def const *pKeyDef; 852 852 uint8_t abCodes[16]; … … 1255 1255 uint32_t cPressed = 0; 1256 1256 uint32_t cbTMSSize = 0; 1257 int i;1258 1257 1259 1258 LogFlowFunc(("Saving PS2K state\n")); … … 1282 1281 * keys after a restore. Needs two passes. 1283 1282 */ 1284 for ( i = 0; i < sizeof(pThis->abDepressedKeys); ++i)1283 for (unsigned i = 0; i < sizeof(pThis->abDepressedKeys); ++i) 1285 1284 if (pThis->abDepressedKeys[i]) 1286 1285 ++cPressed; … … 1288 1287 SSMR3PutU32(pSSM, cPressed); 1289 1288 1290 for ( i = 0; i < sizeof(pThis->abDepressedKeys); ++i)1289 for (unsigned i = 0; i < sizeof(pThis->abDepressedKeys); ++i) 1291 1290 if (pThis->abDepressedKeys[i]) 1292 1291 SSMR3PutU8(pSSM, pThis->abDepressedKeys[i]);
Note:
See TracChangeset
for help on using the changeset viewer.