VirtualBox

Changeset 48590 in vbox


Ignore:
Timestamp:
Sep 20, 2013 1:39:39 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89150
Message:

OS X host: VBOX_KBD_LEDS_SYNC -> VBOX_WITH_KBD_LEDS_SYNC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/DarwinKeyboard.cpp

    r48588 r48590  
    2222*******************************************************************************/
    2323#define LOG_GROUP LOG_GROUP_GUI
    24 //#define VBOX_KBD_LEDS_SYNC
     24//#define VBOX_WITH_KBD_LEDS_SYNC
    2525
    2626#include "DarwinKeyboard.h"
     
    290290#endif /* USE_HID_FOR_MODIFIERS */
    291291
    292 #ifdef VBOX_KBD_LEDS_SYNC
     292#ifdef VBOX_WITH_KBD_LEDS_SYNC
    293293/* HID LEDs synchronization data: LED states. */
    294294typedef struct VBoxHidLeds_t {
     
    305305    CFIndex          cDevices;
    306306} VBoxHidsState_t;
    307 #endif /* VBOX_KBD_LEDS_SYNC */
     307#endif /* VBOX_WITH_KBD_LEDS_SYNC */
    308308
    309309/*******************************************************************************
     
    11511151}
    11521152
    1153 #ifdef VBOX_KBD_LEDS_SYNC
     1153#ifdef VBOX_WITH_KBD_LEDS_SYNC
    11541154/** Prepare dictionary that will be used to match HID LED device(s) while discovering. */
    11551155static CFDictionaryRef darwinGetLedDeviceMatchingDictionary()
     
    13581358    return rc2;
    13591359}
    1360 #endif /* VBOX_KBD_LEDS_SYNC */
     1360#endif /* VBOX_WITH_KBD_LEDS_SYNC */
    13611361
    13621362/** Save the states of leds for all HID devices attached to the system and return it. */
    13631363void * DarwinHidDevicesKeepLedsState(void)
    13641364{
    1365 #ifdef VBOX_KBD_LEDS_SYNC
     1365#ifdef VBOX_WITH_KBD_LEDS_SYNC
    13661366    IOReturn         rc;
    13671367    VBoxHidsState_t *hidsState;
     
    14501450
    14511451    return NULL;
    1452 #else /* VBOX_KBD_LEDS_SYNC */
     1452#else /* VBOX_WITH_KBD_LEDS_SYNC */
    14531453    return NULL;
    14541454#endif
     
    14641464int DarwinHidDevicesApplyAndReleaseLedsState(void *pState)
    14651465{
    1466 #ifdef VBOX_KBD_LEDS_SYNC
     1466#ifdef VBOX_WITH_KBD_LEDS_SYNC
    14671467    VBoxHidsState_t *hidsState = (VBoxHidsState_t *)pState;
    14681468
     
    15061506
    15071507    return rc2;
    1508 #else /* VBOX_KBD_LEDS_SYNC */
     1508#else /* VBOX_WITH_KBD_LEDS_SYNC */
    15091509    (void)pState;
    15101510    return 0;
     
    15251525{
    15261526/* Temporary disabled */
    1527 #ifdef VBOX_KBD_LEDS_SYNC
     1527#ifdef VBOX_WITH_KBD_LEDS_SYNC
    15281528    IOReturn        rc;
    15291529    IOHIDManagerRef hidManagerRef;
     
    15831583        CFRelease(hidManagerRef);
    15841584    }
    1585 #else /* VBOX_KBD_LEDS_SYNC */
     1585#else /* VBOX_WITH_KBD_LEDS_SYNC */
    15861586    (void)fNumLockOn;
    15871587    (void)fCapsLockOn;
Note: See TracChangeset for help on using the changeset viewer.

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