X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/msw/joystick.h diff --git a/include/wx/msw/joystick.h b/include/wx/msw/joystick.h index aa97ff1252..b3f5e57105 100644 --- a/include/wx/msw/joystick.h +++ b/include/wx/msw/joystick.h @@ -1,24 +1,19 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: joystick.h +// Name: wx/msw/joystick.h // Purpose: wxJoystick class // Author: Julian Smart // Modified by: // Created: 01/02/97 -// RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __JOYSTICKH__ -#define __JOYSTICKH__ - -#ifdef __GNUG__ -#pragma interface "joystick.h" -#endif +#ifndef _WX_JOYSTICK_H_ +#define _WX_JOYSTICK_H_ #include "wx/event.h" -class WXDLLEXPORT wxJoystick: public wxObject +class WXDLLIMPEXP_ADV wxJoystick: public wxObject { DECLARE_DYNAMIC_CLASS(wxJoystick) public: @@ -26,12 +21,14 @@ class WXDLLEXPORT wxJoystick: public wxObject * Public interface */ - wxJoystick(int joystick = wxJOYSTICK1) { m_joystick = joystick; }; + wxJoystick(int joystick = wxJOYSTICK1); // Attributes //////////////////////////////////////////////////////////////////////////// wxPoint GetPosition(void) const; + int GetPosition(unsigned axis) const; + bool GetButtonState(unsigned button) const; int GetZPosition(void) const; int GetButtonState(void) const; int GetPOVPosition(void) const; @@ -45,8 +42,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 ; @@ -90,4 +88,4 @@ protected: }; #endif - // __JOYSTICKH__ + // _WX_JOYSTICK_H_