VirtualBox

Changeset 48586 in vbox


Ignore:
Timestamp:
Sep 20, 2013 1:13:18 PM (11 years ago)
Author:
vboxsync
Message:

OS X host: temporary disabled keyboard LEDs syncing (under DARWIN_KBD_LEDS_SYNC).

File:
1 edited

Legend:

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

    r48575 r48586  
    2222*******************************************************************************/
    2323#define LOG_GROUP LOG_GROUP_GUI
     24//#define DARWIN_KBD_LEDS_SYNC
     25
    2426#include "DarwinKeyboard.h"
    2527#include <iprt/assert.h>
     
    288290#endif /* USE_HID_FOR_MODIFIERS */
    289291
     292#ifdef DARWIN_KBD_LEDS_SYNC
    290293/* HID LEDs synchronization data: LED states. */
    291294typedef struct VBoxHidLeds_t {
     
    302305    CFIndex          cDevices;
    303306} VBoxHidsState_t;
    304 
     307#endif /* DARWIN_KBD_LEDS_SYNC */
    305308
    306309/*******************************************************************************
     
    11481151}
    11491152
     1153#ifdef DARWIN_KBD_LEDS_SYNC
    11501154/** Prepare dictionary that will be used to match HID LED device(s) while discovering. */
    11511155static CFDictionaryRef darwinGetLedDeviceMatchingDictionary()
     
    13541358    return rc2;
    13551359}
     1360#endif /* DARWIN_KBD_LEDS_SYNC */
    13561361
    13571362/** Save the states of leds for all HID devices attached to the system and return it. */
    13581363void * DarwinHidDevicesKeepLedsState(void)
    13591364{
     1365#ifdef DARWIN_KBD_LEDS_SYNC
    13601366    IOReturn         rc;
    13611367    VBoxHidsState_t *hidsState;
     
    14441450
    14451451    return NULL;
     1452#else /* DARWIN_KBD_LEDS_SYNC */
     1453    return NULL;
     1454#endif
    14461455}
    14471456
     
    14551464int DarwinHidDevicesApplyAndReleaseLedsState(void *pState)
    14561465{
     1466#ifdef DARWIN_KBD_LEDS_SYNC
    14571467    VBoxHidsState_t *hidsState = (VBoxHidsState_t *)pState;
    14581468
     
    14961506
    14971507    return rc2;
     1508#else /* DARWIN_KBD_LEDS_SYNC */
     1509    (void)pState;
     1510    return 0;
     1511#endif
    14981512}
    14991513
     
    15101524void DarwinHidDevicesBroadcastLeds(bool fNumLockOn, bool fCapsLockOn, bool fScrollLockOn)
    15111525{
     1526/* Temporary disabled */
     1527#ifdef DARWIN_KBD_LEDS_SYNC
    15121528    IOReturn        rc;
    15131529    IOHIDManagerRef hidManagerRef;
     
    15671583        CFRelease(hidManagerRef);
    15681584    }
    1569 }
     1585#else /* DARWIN_KBD_LEDS_SYNC */
     1586    (void)fNumLockOn;
     1587    (void)fCapsLockOn;
     1588    (void)fScrollLockOn;
     1589#endif
     1590}
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