[wxPython] How to disable joystick?

Which versions of wxGTK/wxPython? I ask because it's changed >recently...

I'm using WxPython-2.3.0

[Sorry for the multiple messages, the maillist server was doing weird things
yesterday.]

>Which versions of wxGTK/wxPython? I ask because it's changed
recently...

I'm using WxPython-2.3.0

In that case it should have been automatic.

Look wxGTK's setup.h file (in something
like{prefix}/lib/wx/include/wx/gtk/setup.h) at the setting of
wxUSE_JOYSTICK. It should be defined to 0. You can see how wxPython uses
the flag in wxPython/src/gtk.misc2.cpp. It creates a stub class if the real
one is not going to be used so the wrappers have something to link with:

#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
// A C++ stub class for wxJoystick for platforms that don't have it.
class wxJoystick : public wxObject {
...

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!