X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..0567fdfceb09e9e7a44e8ba01a04e2f9c58dee05:/src/msw/joystick.cpp?ds=sidebyside diff --git a/src/msw/joystick.cpp b/src/msw/joystick.cpp index ac154cde1b..ded5a5fc63 100644 --- a/src/msw/joystick.cpp +++ b/src/msw/joystick.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "joystick.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,57 +24,52 @@ #include #endif -#if !defined(__WIN32__) && !defined(_MMRESULT_) -typedef UINT MMRESULT; -#endif - -#ifdef __GNUWIN32_OLD__ -#include "wx/msw/gnuwin32/extra.h" -#endif - // Why doesn't BC++ have joyGetPosEx? #if !defined(__WIN32__) || defined(__BORLANDC__) #define NO_JOYGETPOSEX #endif #include "wx/window.h" +#include "wx/msw/registry.h" #include "wx/msw/joystick.h" +#include + IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) // Attributes //////////////////////////////////////////////////////////////////////////// /** - johan@linkdata.se 2002-08-20: - Now returns only valid, functioning - joysticks, counting from the first - available and upwards. + johan@linkdata.se 2002-08-20: + Now returns only valid, functioning + joysticks, counting from the first + available and upwards. */ wxJoystick::wxJoystick(int joystick) { JOYINFO joyInfo; - int i, maxsticks; - - maxsticks = joyGetNumDevs(); - for( i=0; i