]> git.saurik.com Git - wxWidgets.git/commitdiff
Provide wxGetKeyState() studfor wxGTK under Windows.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Jun 2012 21:34:50 +0000 (21:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Jun 2012 21:34:50 +0000 (21:34 +0000)
Under Unix this function is implemented in X11-specific code, so provide a
stub under Windows to at least avoid link errors.

Closes #14409.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 4178eddb5729d9c1612df273c082c4667cc8caa4..0dbcab70d242caf89a3dc8866818e7e4a3c748f8 100644 (file)
@@ -2081,6 +2081,16 @@ wxWindow *wxGetActiveWindow()
 }
 
 
+// Under Unix this is implemented using X11 functions in utilsx11.cpp but we
+// need to have this function under Windows too, so provide at least a stub.
+#ifdef __WINDOWS__
+bool wxGetKeyState(wxKeyCode WXUNUSED(key))
+{
+    wxFAIL_MSG(wxS("Not implemented under Windows"));
+    return false;
+}
+#endif // __WINDOWS__
+
 wxMouseState wxGetMouseState()
 {
     wxMouseState ms;