VirtualBox

儲存庫 vbox 的更動 49811


忽略:
時間撮記:
2013-12-6 下午01:31:01 (11 年 以前)
作者:
vboxsync
訊息:

OS X host: HID LEDs sync: prevent LEDs flickering.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp

    r49787 r49811  
    12701270    IOReturn      rc = kIOReturnError;
    12711271
    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 
    12771272    valueRef = IOHIDValueCreateWithIntegerValue(kCFAllocatorDefault, element, 0, (fEnabled) ? 1 : 0);
    12781273    if (valueRef)
     
    12961291    IOReturn      rc;
    12971292    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;
    13031293
    13041294    rc = IOHIDDeviceGetValue(hidDevice, element, &valueRef);
     
    13301320    CFArrayRef matchingElementsArrayRef;
    13311321    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;
    13321327
    13331328    matchingElementsArrayRef = IOHIDDeviceCopyMatchingElements(hidDevice, elementMatchingDict, kIOHIDOptionsTypeNone);
     
    13751370    CFArrayRef matchingElementsArrayRef;
    13761371    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;
    13771377
    13781378    matchingElementsArrayRef = IOHIDDeviceCopyMatchingElements(hidDevice, elementMatchingDict, kIOHIDOptionsTypeNone);
     
    17011701                if (elementMatchingDict)
    17021702                {
    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);
    17061704                    CFRelease(elementMatchingDict);
    17071705                }
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette