// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
+// Some older compilers (such as EMX) cannot handle
+// #pragma interface/implementation correctly, iff
+// #pragma implementation is used in _two_ translation
+// units (as created by e.g. event.cpp compiled for
+// libwx_base and event.cpp compiled for libwx_gui_core).
+// So we must not use those pragmas for those compilers in
+// such files.
#pragma interface "utils.h"
#endif
// Sound the bell
WXDLLIMPEXP_BASE void wxBell();
+#if defined(__WXMSW__) || defined(__WXMAC__)
+ // Get the state of a key (true if pressed, false if not)
+ // This is generally most useful getting the state of
+ // Caps Lock, Num Lock and Scroll Lock...
+
+ // Note - There is a X11/GTK version which will be here
+ // soon
+ WXDLLIMPEXP_BASE bool wxGetKeyState(wxKeyCode key);
+#endif
+
// Get OS description as a user-readable string
WXDLLIMPEXP_BASE wxString wxGetOsDescription();