Changeset 48772 in vbox
- Timestamp:
- Sep 30, 2013 2:48:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r48741 r48772 1364 1364 } 1365 1365 1366 1367 1366 /** IOKit key press callback. Triggered before Carbon callback. */ 1368 1367 static void darwinHidInputCallback(void *pData, IOReturn unused, void *unused1, IOHIDValueRef valueRef) 1369 1368 { … … 1383 1382 } 1384 1383 1384 /** Carbon key press callback. Triggered after IOKit callback. */ 1385 1385 #define VBOX_BOOL_TO_STR_STATE(x) (x) ? "ON" : "OFF" 1386 1386 static CGEventRef darwinCarbonGlobalKeyPressCallback(CGEventTapProxy unused, CGEventType type, CGEventRef pEventRef, void *unused1) … … 1406 1406 g_LastTouchedState->fCapsLockOn = fCaps; 1407 1407 g_LastTouchedState->fNumLockOn = fNum; 1408 1409 /* Forget device */ 1410 g_LastTouchedState = NULL; 1408 1411 } 1409 1412 } … … 1413 1416 #undef VBOX_BOOL_TO_STR_STATE 1414 1417 1418 /** Register Carbon key press callback. */ 1415 1419 static int darwinAddCarbonGlobalKeyPressHandler(VBoxHidsState_t *pState) 1416 1420 { … … 1446 1450 } 1447 1451 1452 /** Remove Carbon key press callback. */ 1448 1453 static void darwinRemoveCarbonGlobalKeyPressHandler(VBoxHidsState_t *pState) 1449 1454 { … … 1668 1673 if (elementMatchingDict) 1669 1674 { 1675 Log2(("Start LEDs broadcast\n")); 1676 1670 1677 for (CFIndex i = 0; i < cDevices; i++) 1671 1678 { … … 1679 1686 } 1680 1687 1688 Log2(("LEDs broadcast completed\n")); 1681 1689 CFRelease(elementMatchingDict); 1682 1690 }
Note:
See TracChangeset
for help on using the changeset viewer.