VirtualBox

Changeset 48772 in vbox


Ignore:
Timestamp:
Sep 30, 2013 2:48:17 PM (11 years ago)
Author:
vboxsync
Message:

Mac OS X host: LEDs sync: minor update.

File:
1 edited

Legend:

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

    r48741 r48772  
    13641364}
    13651365
    1366 
    1367 
     1366/** IOKit key press callback. Triggered before Carbon callback. */
    13681367static void darwinHidInputCallback(void *pData, IOReturn unused, void *unused1, IOHIDValueRef valueRef)
    13691368{
     
    13831382}
    13841383
     1384/** Carbon key press callback. Triggered after IOKit callback. */
    13851385#define VBOX_BOOL_TO_STR_STATE(x) (x) ? "ON" : "OFF"
    13861386static CGEventRef darwinCarbonGlobalKeyPressCallback(CGEventTapProxy unused, CGEventType type, CGEventRef pEventRef, void *unused1)
     
    14061406            g_LastTouchedState->fCapsLockOn = fCaps;
    14071407            g_LastTouchedState->fNumLockOn  = fNum;
     1408
     1409            /* Forget device */
     1410            g_LastTouchedState = NULL;
    14081411        }
    14091412    }
     
    14131416#undef VBOX_BOOL_TO_STR_STATE
    14141417
     1418/** Register Carbon key press callback. */
    14151419static int darwinAddCarbonGlobalKeyPressHandler(VBoxHidsState_t *pState)
    14161420{
     
    14461450}
    14471451
     1452/** Remove Carbon key press callback. */
    14481453static void darwinRemoveCarbonGlobalKeyPressHandler(VBoxHidsState_t *pState)
    14491454{
     
    16681673                        if (elementMatchingDict)
    16691674                        {
     1675                            Log2(("Start LEDs broadcast\n"));
     1676
    16701677                            for (CFIndex i = 0; i < cDevices; i++)
    16711678                            {
     
    16791686                            }
    16801687
     1688                            Log2(("LEDs broadcast completed\n"));
    16811689                            CFRelease(elementMatchingDict);
    16821690                        }
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