Modifier key state

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

  1. MACaveli7 macrumors newbie

    Oct 15, 2010
    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. MACaveli7 thread starter macrumors newbie

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

Share This Page