]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/unix/joystick.h
replace 5 copies of size constraining code with one function
[wxWidgets.git] / include / wx / unix / joystick.h
index 6267c1e19ac8df44227698a8e7eef6d023b74f49..5145446311da3fdb001debb961607993c9bef7dc 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        joystick.h
+// Name:        wx/unix/joystick.h
 // Purpose:     wxJoystick class
 // Author:      Guilhem Lavaux
 // Modified by:
 // Created:     01/02/97
 // RCS-ID:      $Id$
 // Copyright:   (c) Guilhem Lavaux
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef __JOYSTICKH__
@@ -32,6 +32,8 @@ class WXDLLEXPORT wxJoystick: public wxObject
     ////////////////////////////////////////////////////////////////////////////
 
     wxPoint GetPosition() const;
+    int GetPosition(unsigned axis) const;
+    bool GetButtonState(unsigned button) const;
     int GetZPosition() const;
     int GetButtonState() const;
     int GetPOVPosition() const;
@@ -92,5 +94,4 @@ protected:
 };
 
 #endif
-// __JOYSTICKH__
-
+    // __JOYSTICKH__