Changeset 34001 in vbox for trunk/src/VBox/Devices/Input/UsbKbd.cpp
- Timestamp:
- Nov 11, 2010 4:31:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbKbd.cpp
r34000 r34001 376 376 0x00, 0x00, 0x00, 0x00, 0x68, 0x69, 0x6a, 0x6b, /* 60-67 */ 377 377 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x00, /* 68-6F */ 378 0x88, 0x9 0, 0x91, 0x87, 0x00, 0x00, 0x00, 0x00, /* 70-77 */378 0x88, 0x91, 0x90, 0x87, 0x00, 0x00, 0x00, 0x00, /* 70-77 */ 379 379 0x00, 0x8a, 0x00, 0x8b, 0x00, 0x89, 0x85, 0x00 /* 78-7F */ 380 380 }; … … 702 702 uint8_t *pabDepressedKeys) 703 703 { 704 int rc = false; 704 705 unsigned iBuf = 0; 705 706 RT_ZERO(*pReport); … … 725 726 pReport->aKeys[iBuf] = iKey; 726 727 ++iBuf; 728 /* More Korean keyboard hackery: Give the caller a hint that 729 * a key release event needs reporting. 730 */ 731 if (iKey == 0x90 || iKey == 0x91) 732 rc = true; 727 733 } 728 734 pabUnreportedKeys[iKey] = 0; 729 735 } 730 736 } 731 return VINF_SUCCESS;737 return rc; 732 738 } 733 739 … … 843 849 PUSBHIDK_REPORT pReport = (PUSBHIDK_REPORT)&pUrb->abData[0]; 844 850 845 int rc = usbHidFillReport(pReport, pThis->abUnreportedKeys, 846 pThis->abDepressedKeys); 847 pThis->fHasPendingChanges = false; 848 AssertRCReturn(rc, rc); 851 int again = usbHidFillReport(pReport, pThis->abUnreportedKeys, 852 pThis->abDepressedKeys); 853 if (again) 854 pThis->fHasPendingChanges = true; 855 else 856 pThis->fHasPendingChanges = false; 849 857 return usbHidCompleteOk(pThis, pUrb, sizeof(*pReport)); 850 858 }
Note:
See TracChangeset
for help on using the changeset viewer.