From: Robin Dunn Date: Wed, 17 Dec 2003 23:58:04 +0000 (+0000) Subject: Added wxGetKeyState X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/57b1892fb6e010e66a38ab0ea92886af925fa03b?ds=inline Added wxGetKeyState git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 1d85f1a864..241ad3d5fd 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -211,6 +211,14 @@ wxWindow* wxGetTopLevelParent(wxWindow *win); +#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... +bool wxGetKeyState(wxKeyCode key); +#endif + + //--------------------------------------------------------------------------- #if defined(__WXMSW__) || defined(__WXMAC__)