X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..3f4a2351e4c677c88c18ea812b609477adee7380:/src/mac/classic/joystick.cpp diff --git a/src/mac/classic/joystick.cpp b/src/mac/classic/joystick.cpp index 0d50a65359..d0127f52e2 100644 --- a/src/mac/classic/joystick.cpp +++ b/src/mac/classic/joystick.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: joystick.cpp +// Name: src/mac/classic/joystick.cpp // Purpose: wxJoystick class // Author: Stefan Csomor // Modified by: @@ -9,12 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/setup.h" - -#include "wx/joystick.h" +#include "wx/wxprec.h" #if wxUSE_JOYSTICK +#include "wx/joystick.h" + IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) // Attributes @@ -85,10 +85,10 @@ void wxJoystick::SetMovementThreshold(int threshold) bool wxJoystick::IsOk() const { // TODO - return FALSE; + return false; } -int wxJoystick::GetNumberJoysticks() const +int wxJoystick::GetNumberJoysticks() { // TODO return 0; @@ -109,7 +109,7 @@ int wxJoystick::GetProductId() const wxString wxJoystick::GetProductName() const { // TODO - return wxString(wxT("")); + return wxEmptyString; } int wxJoystick::GetXMin() const @@ -223,43 +223,43 @@ int wxJoystick::GetVMax() const bool wxJoystick::HasRudder() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasZ() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasU() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasV() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasPOV() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasPOV4Dir() const { // TODO - return FALSE; + return false; } bool wxJoystick::HasPOVCTS() const { // TODO - return FALSE; + return false; } // Operations @@ -268,15 +268,14 @@ bool wxJoystick::HasPOVCTS() const bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq) { // TODO - return FALSE; + return false; } bool wxJoystick::ReleaseCapture() { // TODO - return FALSE; + return false; } #endif // wxUSE_JOYSTICK -