CGEventSourceButtonState (kCGEventSourceStateCombinedSessionState, kCGMouseButtonLeft));
- это то, что вам нужно на 64 бит. (хорошо, 4 года позже).
// Моззилла ...
1.30 #ifdef XP_MACOSX
1.31 - // hacky OS call to ensure that we don't show a context menu when the user
1.32 - // let go of the mouse already, after a long, cpu-hogging operation prevented
1.33 + // Hack to ensure that we don't show a context menu when the user
1.34 + // let go of the mouse after a long cpu-hogging operation prevented
1.35 // us from handling any OS events. See bug 117589.
1.36 - if (!::StillDown())
1.37 + if (!CGEventSourceButtonState(kCGEventSourceStateCombinedSessionState, kCGMouseButtonLeft))
1.38 return;
1.39 #endif