]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/utils.cpp
fixed wrong return value and child creation login in GetWindowChild() (includes patch...
[wxWidgets.git] / src / mgl / utils.cpp
index fd2e5c63c73e0c0417e432908cffb3bd905a6c1e..503914f8a236ad7021a98ee00bccb79157b289a0 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        utils.cpp
+// Name:        src/mgl/utils.cpp
 // Purpose:
 // Author:      Vaclav Slavik
 // Id:          $Id$
 #endif
 
 #include "wx/utils.h"
-#include "wx/string.h"
 
-#include "wx/intl.h"
+#ifndef WX_PRECOMP
+    #include "wx/string.h"
+    #include "wx/intl.h"
+    #include "wx/log.h"
+#endif
+
 #include "wx/apptrait.h"
-#include "wx/log.h"
 #include "wx/process.h"
 
 #include <stdarg.h>
@@ -44,6 +47,16 @@ void wxBell()
     // FIXME_MGL
 }
 
+bool wxGetKeyState(wxKeyCode key)
+{
+    wxASSERT_MSG(key != WXK_LBUTTON && key != WXK_RBUTTON && key !=
+        WXK_MBUTTON, wxT("can't use wxGetKeyState() for mouse buttons"));
+
+    // TODO
+
+    return false;
+}
+
 // ----------------------------------------------------------------------------
 // display characterstics
 // ----------------------------------------------------------------------------
@@ -152,6 +165,12 @@ wxPoint wxGetMousePosition()
     return pt;
 }
 
+wxMouseState wxGetMouseState()
+{
+    wxMouseState ms;
+    // TODO
+    return ms;
+}
 
 
 #ifdef __UNIX__