X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..062dfc9a96dc9e796c53544f41ff92dc47f26e82:/src/palmos/joystick.cpp?ds=sidebyside diff --git a/src/palmos/joystick.cpp b/src/palmos/joystick.cpp index 432244d1b1..528e6dc408 100644 --- a/src/palmos/joystick.cpp +++ b/src/palmos/joystick.cpp @@ -9,20 +9,17 @@ // 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) @@ -31,13 +28,25 @@ 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; @@ -107,7 +116,7 @@ int wxJoystick::GetProductId() const wxString wxJoystick::GetProductName() const { - return wxString(""); + return wxEmptyString; } int wxJoystick::GetXMin() const @@ -249,3 +258,4 @@ bool wxJoystick::ReleaseCapture() return false; } +#endif // wxUSE_JOYSTICK