儲存庫 vbox 的更動 49811
- 時間撮記:
- 2013-12-6 下午01:31:01 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r49787 r49811 1270 1270 IOReturn rc = kIOReturnError; 1271 1271 1272 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */1273 int rc1 = SUPR3ResumeBuiltinKeyboard();1274 if (RT_FAILURE(rc1))1275 return rc1;1276 1277 1272 valueRef = IOHIDValueCreateWithIntegerValue(kCFAllocatorDefault, element, 0, (fEnabled) ? 1 : 0); 1278 1273 if (valueRef) … … 1296 1291 IOReturn rc; 1297 1292 CFIndex integerValue; 1298 1299 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */1300 int rc1 = SUPR3ResumeBuiltinKeyboard();1301 if (RT_FAILURE(rc1))1302 return rc1;1303 1293 1304 1294 rc = IOHIDDeviceGetValue(hidDevice, element, &valueRef); … … 1330 1320 CFArrayRef matchingElementsArrayRef; 1331 1321 int rc2 = 0; 1322 1323 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */ 1324 int rc1 = SUPR3ResumeBuiltinKeyboard(); 1325 if (RT_FAILURE(rc1)) 1326 return rc1; 1332 1327 1333 1328 matchingElementsArrayRef = IOHIDDeviceCopyMatchingElements(hidDevice, elementMatchingDict, kIOHIDOptionsTypeNone); … … 1375 1370 CFArrayRef matchingElementsArrayRef; 1376 1371 int rc2 = 0; 1372 1373 /* Try to resume built-in keyboard. Abort if failed in order to avoid GUI freezes. */ 1374 int rc1 = SUPR3ResumeBuiltinKeyboard(); 1375 if (RT_FAILURE(rc1)) 1376 return rc1; 1377 1377 1378 1378 matchingElementsArrayRef = IOHIDDeviceCopyMatchingElements(hidDevice, elementMatchingDict, kIOHIDOptionsTypeNone); … … 1701 1701 if (elementMatchingDict) 1702 1702 { 1703 (void)darwinSetDeviceLedsState(pKbd->pDevice, elementMatchingDict, pHidState->guestState.fNumLockOn, 1704 pHidState->guestState.fCapsLockOn, pHidState->guestState.fScrollLockOn); 1705 1703 (void)darwinSetDeviceLedsState(pKbd->pDevice, elementMatchingDict, fNum, fCaps, pHidState->guestState.fScrollLockOn); 1706 1704 CFRelease(elementMatchingDict); 1707 1705 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器