X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b1ca1177d0affb978c2fa7ef227fd74ee83bece..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/osx/core/hidjoystick.cpp diff --git a/src/osx/core/hidjoystick.cpp b/src/osx/core/hidjoystick.cpp index 7f68765341..d1563b650c 100644 --- a/src/osx/core/hidjoystick.cpp +++ b/src/osx/core/hidjoystick.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/corefoundation/joystick.cpp +// Name: src/osx/core/joystick.cpp // Purpose: wxJoystick class // Author: Ryan Norton // Modified by: @@ -157,8 +157,7 @@ wxJoystick::wxJoystick(int joystick) } else { - delete m_hid; - m_hid = NULL; + wxDELETE(m_hid); } } @@ -779,7 +778,7 @@ void* wxJoystickThread::Entry() //--------------------------------------------------------------------------- // wxJoystickThread::HIDCallback (static) // -// Callback for the native HID device when it recieves input. +// Callback for the native HID device when it receives input. // // This is where the REAL dirty work gets done. // @@ -894,11 +893,11 @@ void* wxJoystickThread::Entry() wxevent.SetEventObject(pThis->m_catchwin); if (pThis->m_catchwin) - pThis->m_catchwin->AddPendingEvent(wxevent); + pThis->m_catchwin->GetEventHandler()->AddPendingEvent(wxevent); ret = (*m_hid->GetQueue())->getNextEvent(m_hid->GetQueue(), &hidevent, bogustime, 0); } } -#endif // wxUSE_JOYSTICK +#endif // wxUSE_JOYSTICK