]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/joystick.cpp
Fix typo in last commit
[wxWidgets.git] / src / unix / joystick.cpp
index 15f49db961bc7ddd115bfbad4fb4feefe480df07..f9f2ba9d41dd2cafc77c695d0da5ed79d4816c7f 100644 (file)
@@ -21,6 +21,8 @@
     #include "wx/window.h"
 #endif //WX_PRECOMP
 
+#include "wx/thread.h"
+
 #include <linux/joystick.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -100,7 +102,7 @@ void wxJoystickThread::SendEvent(wxEventType type, long ts, int change)
     jwx_event.SetEventObject(m_catchwin);
 
     if (m_catchwin)
-        m_catchwin->AddPendingEvent(jwx_event);
+        m_catchwin->GetEventHandler()->AddPendingEvent(jwx_event);
 }
 
 void* wxJoystickThread::Entry()