wxGetKeyState as per feature request :).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2003-12-14 23:35:21 +00:00
parent c10eeb63ba
commit 6ed892f3f2
5 changed files with 112 additions and 0 deletions

View File

@@ -5057,6 +5057,18 @@ int wxCharCodeWXToMSW(int id, bool *isVirtual)
return keySym;
}
bool wxGetKeyState(wxKeyCode key)
{
bool bVirtual;
int vkey = wxCharCodeWXToMSW(key, &bVirtual);
//there aren't WXK_ macros for non-virtual key codes
if (bVirtual == false)
return false;
return GetKeyState(vkey) < 0;
}
wxWindow *wxGetActiveWindow()
{
HWND hWnd = GetActiveWindow();