]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/utils.h
wxPython needs wxRTTI info for wxToolBarToolBase in order to return
[wxWidgets.git] / include / wx / utils.h
index 7dd95c8923cced54e063ebdf3257478ea348475f..f7270a6617f20ce084c718505b4f8ab882ac1964 100644 (file)
@@ -80,6 +80,16 @@ WXDLLIMPEXP_BASE wxChar* copystring(const wxChar *s);
 // 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();