X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..8cc3b2e9821e9d20071d3f70cec17439554696ee:/src/os2/joystick.cpp diff --git a/src/os2/joystick.cpp b/src/os2/joystick.cpp index 6677277f48..5f2110557e 100644 --- a/src/os2/joystick.cpp +++ b/src/os2/joystick.cpp @@ -1,18 +1,31 @@ ///////////////////////////////////////////////////////////////////////////// // Name: joystick.cpp // Purpose: wxJoystick class -// Author: AUTHOR +// Author: David Webster // Modified by: -// Created: ??/??/98 +// Created: 10/09/99 // RCS-ID: $Id$ -// Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Copyright: (c) David Webster +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "joystick.h" -#endif +// +// For compilers that support precompilation, includes "wx.h". +// +#include "wx/wxprec.h" +#include "wx/defs.h" + +#if wxUSE_JOYSTICK + +#include "wx/string.h" +#define INCL_PM +#define INCL_DOS +#include "wx/os2/private.h" + +#define NO_JOYGETPOSEX + +#include #include IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject) @@ -74,7 +87,7 @@ int wxJoystick::GetMovementThreshold() const return 0; } -void wxJoystick::SetMovementThreshold(int threshold) +void wxJoystick::SetMovementThreshold(int WXUNUSED(threshold)) { // TODO } @@ -85,7 +98,7 @@ void wxJoystick::SetMovementThreshold(int threshold) bool wxJoystick::IsOk() const { // TODO - return FALSE; + return false; } int wxJoystick::GetNumberJoysticks() const @@ -223,57 +236,57 @@ 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 //////////////////////////////////////////////////////////////////////////// -bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq) +bool wxJoystick::SetCapture(wxWindow* WXUNUSED(win), int WXUNUSED(pollingFreq)) { // TODO - return FALSE; + return false; } bool wxJoystick::ReleaseCapture() { // TODO - return FALSE; + return false; } - +#endif // wxUSE_JOYSTICK