Changeset 26669 in vbox
- Timestamp:
- Feb 21, 2010 11:04:35 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Input/UsbKbd.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbKbd.cpp
r26495 r26669 551 551 static int8_t clamp_i8(int32_t val) 552 552 { 553 if (val > 127) {553 if (val > 127) 554 554 val = 127; 555 } else if (val < -127) {555 else if (val < -127) 556 556 val = -127; 557 }558 557 return val; 559 558 } … … 592 591 uint8_t u8HidCode; 593 592 int fKeyDown; 594 inti;593 unsigned i; 595 594 596 595 // int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY); … … 607 606 if (pReport->aKeys[i] == u8HidCode) 608 607 break; /* Skip repeat events. */ 609 if (pReport->aKeys[i] == 0) { 608 if (pReport->aKeys[i] == 0) 609 { 610 610 pReport->aKeys[i] = u8HidCode; /* Report key down. */ 611 611 break;
Note:
See TracChangeset
for help on using the changeset viewer.

