bool wxGetKeyState(wxKeyCode key) //virtual key code if < 10.2.x, else see below
{
+#if __WXMAC_CARBON__
//#ifdef __DARWIN__
// wxHIDKeyboard keyboard;
// return keyboard.IsActive(key);
//a known apple bug prevents the system from determining led
//states with GetKeys... can only determine caps lock led
return !!(GetCurrentKeyModifiers() & wxKeyCodeToMacModifier(key));
-//else
-// KeyMapByteArray keymap;
-// GetKeys((BigEndianLong*)keymap);
-// return !!(BitTst(keymap, (sizeof(KeyMapByteArray)*8) - iKey));
-//#endif
+#else
+ KeyMap keymap;
+ GetKeys(keymap);
+ return !!(BitTst(keymap, (sizeof(KeyMap)*8) - key));
+#endif
}
#if !TARGET_CARBON