]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/joystick.cpp
Printing update for Pango (GTK2 and X11-Unicode).
[wxWidgets.git] / src / gtk1 / joystick.cpp
index e53af61ccf66cf1284ec599f929d8c38af54c5a8..bbc4d826c0aa1d14b32c79b354e93cdf10466408 100644 (file)
@@ -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