Changeset 48590 in vbox
- Timestamp:
- Sep 20, 2013 1:39:39 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89150
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp
r48588 r48590 22 22 *******************************************************************************/ 23 23 #define LOG_GROUP LOG_GROUP_GUI 24 //#define VBOX_ KBD_LEDS_SYNC24 //#define VBOX_WITH_KBD_LEDS_SYNC 25 25 26 26 #include "DarwinKeyboard.h" … … 290 290 #endif /* USE_HID_FOR_MODIFIERS */ 291 291 292 #ifdef VBOX_ KBD_LEDS_SYNC292 #ifdef VBOX_WITH_KBD_LEDS_SYNC 293 293 /* HID LEDs synchronization data: LED states. */ 294 294 typedef struct VBoxHidLeds_t { … … 305 305 CFIndex cDevices; 306 306 } VBoxHidsState_t; 307 #endif /* VBOX_ KBD_LEDS_SYNC */307 #endif /* VBOX_WITH_KBD_LEDS_SYNC */ 308 308 309 309 /******************************************************************************* … … 1151 1151 } 1152 1152 1153 #ifdef VBOX_ KBD_LEDS_SYNC1153 #ifdef VBOX_WITH_KBD_LEDS_SYNC 1154 1154 /** Prepare dictionary that will be used to match HID LED device(s) while discovering. */ 1155 1155 static CFDictionaryRef darwinGetLedDeviceMatchingDictionary() … … 1358 1358 return rc2; 1359 1359 } 1360 #endif /* VBOX_ KBD_LEDS_SYNC */1360 #endif /* VBOX_WITH_KBD_LEDS_SYNC */ 1361 1361 1362 1362 /** Save the states of leds for all HID devices attached to the system and return it. */ 1363 1363 void * DarwinHidDevicesKeepLedsState(void) 1364 1364 { 1365 #ifdef VBOX_ KBD_LEDS_SYNC1365 #ifdef VBOX_WITH_KBD_LEDS_SYNC 1366 1366 IOReturn rc; 1367 1367 VBoxHidsState_t *hidsState; … … 1450 1450 1451 1451 return NULL; 1452 #else /* VBOX_ KBD_LEDS_SYNC */1452 #else /* VBOX_WITH_KBD_LEDS_SYNC */ 1453 1453 return NULL; 1454 1454 #endif … … 1464 1464 int DarwinHidDevicesApplyAndReleaseLedsState(void *pState) 1465 1465 { 1466 #ifdef VBOX_ KBD_LEDS_SYNC1466 #ifdef VBOX_WITH_KBD_LEDS_SYNC 1467 1467 VBoxHidsState_t *hidsState = (VBoxHidsState_t *)pState; 1468 1468 … … 1506 1506 1507 1507 return rc2; 1508 #else /* VBOX_ KBD_LEDS_SYNC */1508 #else /* VBOX_WITH_KBD_LEDS_SYNC */ 1509 1509 (void)pState; 1510 1510 return 0; … … 1525 1525 { 1526 1526 /* Temporary disabled */ 1527 #ifdef VBOX_ KBD_LEDS_SYNC1527 #ifdef VBOX_WITH_KBD_LEDS_SYNC 1528 1528 IOReturn rc; 1529 1529 IOHIDManagerRef hidManagerRef; … … 1583 1583 CFRelease(hidManagerRef); 1584 1584 } 1585 #else /* VBOX_ KBD_LEDS_SYNC */1585 #else /* VBOX_WITH_KBD_LEDS_SYNC */ 1586 1586 (void)fNumLockOn; 1587 1587 (void)fCapsLockOn;
Note:
See TracChangeset
for help on using the changeset viewer.