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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user