X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f7896861f734ce044ee8601ba2d8a6959c9d9e..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/unix/joystick.cpp diff --git a/src/unix/joystick.cpp b/src/unix/joystick.cpp index 15f49db961..f9f2ba9d41 100644 --- a/src/unix/joystick.cpp +++ b/src/unix/joystick.cpp @@ -21,6 +21,8 @@ #include "wx/window.h" #endif //WX_PRECOMP +#include "wx/thread.h" + #include #include #include @@ -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()