X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4055ed8281971e3d35bf04177193c27043d42ed1..c1aa5517acff9ce039adcd6502db2e88cdd886c7:/src/palmos/joystick.cpp diff --git a/src/palmos/joystick.cpp b/src/palmos/joystick.cpp index 7fb42f228c..f189adc7cd 100644 --- a/src/palmos/joystick.cpp +++ b/src/palmos/joystick.cpp @@ -1,28 +1,26 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: joystick.cpp +// Name: src/palmos/joystick.cpp // Purpose: wxJoystick class -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // 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 +#if wxUSE_JOYSTICK + +#include "wx/joystick.h" + +#ifndef WX_PRECOMP + #include "wx/string.h" #endif -#include "wx/string.h" #include "wx/window.h" -#include "wx/palmos/joystick.h" IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) @@ -31,7 +29,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) wxJoystick::wxJoystick(int joystick) { -}; +} wxPoint wxJoystick::GetPosition() const { @@ -107,7 +105,7 @@ int wxJoystick::GetProductId() const wxString wxJoystick::GetProductName() const { - return wxString(""); + return wxEmptyString; } int wxJoystick::GetXMin() const @@ -249,3 +247,4 @@ bool wxJoystick::ReleaseCapture() return false; } +#endif // wxUSE_JOYSTICK