X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f7896861f734ce044ee8601ba2d8a6959c9d9e..abd474ea63667f727940a009cc3e0b23ba9f418f:/src/unix/joystick.cpp?ds=inline 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()