Modifier key state

Discussion in 'Mac Programming' started by MACaveli7, Oct 25, 2010.

  1. macrumors newbie

    Joined:
    Oct 15, 2010
    #1
    Can anyone tell me how to get the modifier key state for the UCKeyTranslate function, I know I have to do the following with it.

    EventRecord event;

    modifierKeyState = ((event.modifiers) >> 8) & 0xFF;

    but how do I tie the event instance to what the actual modifier key state is?
     
  2. thread starter macrumors newbie

    Joined:
    Oct 15, 2010
    #2
    I've acquired it through the WaitNextEvent function. It was right there in the same header file.
     

Share This Page