- Timestamp:
- Oct 28, 2013 9:42:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r49302 r49304 316 316 } VBoxKbdState_t; 317 317 318 /* A struct that used to pass input event info from IOKit callback to a Carbon one */ 319 typedef struct VBoxKbdEvent_t { 320 VBoxKbdState_t *pKbd; 321 uint32_t iKeyCode; 322 uint64_t tsKeyDown; 323 uint64_t tsKeyUp; 324 } VBoxKbdEvent_t; 325 318 326 /* HID LEDs synchronization data: IOKit specific data. */ 319 327 typedef struct VBoxHidsState_t { … … 1462 1470 } 1463 1471 1464 typedef struct VBoxKbdEvent_t {1465 VBoxKbdState_t *pKbd;1466 uint32_t iKeyCode;1467 uint64_t tsKeyDown;1468 uint64_t tsKeyUp;1469 } VBoxKbdEvent_t;1470 1471 1472 /** IOKit key press callback. Triggered before Carbon callback. We remember which keyboard produced a keypress here. */ 1472 1473 static void darwinHidInputCallback(void *pData, IOReturn unused, void *unused1, IOHIDValueRef pValueRef) … … 1599 1600 1600 1601 if (pEvent->iKeyCode == kHIDUsage_KeypadNumLock 1601 || (pEvent->iKeyCode == kHIDUsage_KeyboardCapsLock && 1602 (RTTimeSystemMilliTS() - pEvent->tsKeyDown) > pEvent->pKbd->cCapsLockTimeout)) 1602 || pEvent->iKeyCode == kHIDUsage_KeyboardCapsLock) 1603 1603 { 1604 1604 /* Found one. Keep its index in queue in order to remove it later. */
Note:
See TracChangeset
for help on using the changeset viewer.