// 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"
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
+#if wxUSE_JOYSTICK
-#include "wx/string.h"
-#include "wx/window.h"
-#include "wx/palmos/joystick.h"
+#include "wx/joystick.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/string.h"
+ #include "wx/window.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
wxJoystick::wxJoystick(int joystick)
{
-};
+}
wxPoint wxJoystick::GetPosition() const
{
return wxPoint(0, 0);
}
+int wxJoystick::GetPosition(unsigned axis) const
+{
+ // TODO
+ return 0;
+}
+
+bool wxJoystick::GetButtonState(unsigned id) const
+{
+ // TODO
+ return false;
+}
+
int wxJoystick::GetZPosition() const
{
return 0;
return false;
}
+#endif // wxUSE_JOYSTICK