X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fab591c5cceff41c0bedaa89af34cd039e2c44e1..0425151023593cb31da0ee0a652da173ca9abfde:/src/gtk/joystick.cpp diff --git a/src/gtk/joystick.cpp b/src/gtk/joystick.cpp index e53af61ccf..710841201a 100644 --- a/src/gtk/joystick.cpp +++ b/src/gtk/joystick.cpp @@ -6,7 +6,7 @@ // Created: 05/23/98 // RCS-ID: $Id$ // Copyright: (c) Guilhem Lavaux -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -139,12 +139,12 @@ int wxJoystick::GetButtonState(void) const int wxJoystick::GetPOVPosition(void) const { - return 0; + return -1; } int wxJoystick::GetPOVCTSPosition(void) const { - return 0; + return -1; } int wxJoystick::GetRudderPosition(void) const @@ -207,7 +207,11 @@ int wxJoystick::GetProductId(void) const wxString wxJoystick::GetProductName(void) const { - return wxT(""); + wxString dev_name; + // 2002-08-20 johan@linkdata.se + // Return the device name in lieu of a better one + dev_name.Printf( wxT("/dev/js%d"), (m_joystick == wxJOYSTICK1) ? 0 : 1); // FIXME Unicode? + return dev_name; } int wxJoystick::GetXMin(void) const