X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..d44d0cbd7343e36ddd3657dd97cd5eb7018d2585:/include/wx/msw/joystick.h diff --git a/include/wx/msw/joystick.h b/include/wx/msw/joystick.h index 4b15a0245e..13a462b463 100644 --- a/include/wx/msw/joystick.h +++ b/include/wx/msw/joystick.h @@ -6,19 +6,19 @@ // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_JOYSTICK_H_ #define _WX_JOYSTICK_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "joystick.h" #endif #include "wx/event.h" -class WXDLLEXPORT wxJoystick: public wxObject +class WXDLLIMPEXP_ADV wxJoystick: public wxObject { DECLARE_DYNAMIC_CLASS(wxJoystick) public: @@ -26,7 +26,7 @@ class WXDLLEXPORT wxJoystick: public wxObject * Public interface */ - wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }; + wxJoystick(int joystick = wxJOYSTICK1); // Attributes //////////////////////////////////////////////////////////////////////////// @@ -45,8 +45,9 @@ class WXDLLEXPORT wxJoystick: public wxObject // Capabilities //////////////////////////////////////////////////////////////////////////// + static int GetNumberJoysticks(void); + bool IsOk(void) const; // Checks that the joystick is functioning - int GetNumberJoysticks(void) const ; int GetManufacturerId(void) const ; int GetProductId(void) const ; wxString GetProductName(void) const ;