- Timestamp:
- Oct 1, 2013 8:25:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r48788 r48789 1627 1627 for (i = 0; i < hidsState->cDevices; i++) 1628 1628 { 1629 rc = darwinSetDeviceLedsState(hidsState->hidDevicesCollection[i], 1630 elementMatchingDict, 1631 hidsState->hidLedsCollection[i].fNumLockOn, 1632 hidsState->hidLedsCollection[i].fCapsLockOn, 1633 hidsState->hidLedsCollection[i].fScrollLockOn); 1634 if (rc != 0) 1635 { 1636 Log2(("Unable to restore led states for device (%d)!\n", (int)i)); 1637 rc2 = kIOReturnError; 1638 } 1639 1640 /* Only supported devices have subscription to input callbacks. */ 1629 /* Cycle through supported devices only. */ 1641 1630 if (darwinHidDeviceSupported(hidsState->hidDevicesCollection[i])) 1642 1631 { 1632 rc = darwinSetDeviceLedsState(hidsState->hidDevicesCollection[i], 1633 elementMatchingDict, 1634 hidsState->hidLedsCollection[i].fNumLockOn, 1635 hidsState->hidLedsCollection[i].fCapsLockOn, 1636 hidsState->hidLedsCollection[i].fScrollLockOn); 1637 if (rc != 0) 1638 { 1639 Log2(("Unable to restore led states for device (%d)!\n", (int)i)); 1640 rc2 = kIOReturnError; 1641 } 1642 1643 1643 IOHIDDeviceRegisterInputValueCallback(hidsState->hidDevicesCollection[i], NULL, NULL); 1644 1644 IOHIDDeviceUnscheduleFromRunLoop(hidsState->hidDevicesCollection[i], CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
Note:
See TracChangeset
for help on using the changeset viewer.