Programming joysticks (Marcos Balsa)

I was having trouble reading one of the axes on my Microsoft Sidewinder
force feedback wheel using SDL’s Windows MM joystick driver. The problem is
that it returns data on axes 1, 2, and 5. The SDL joystick driver detects
that axis 3 doesn’t exist and so assumes that there are only 2 axes. I was
feeling adventurous so I went ahead and wrote a new joystick subsystem for
SDL that uses Directx 8 instead. I’m also planning to kludge in some sort of
force-feedback support. I don’t know how helpful this will be, but it might
fix your problems on Windows. If anyone wants it (warning in advance: it’s
pretty ugly) let me know and I’ll upload the source and post a link to the
list.

Ryan>Hello,

I have to program joystick support for a professional
application and we are managing to use SDL as a
portable library. But the joystick we are hoping to
use (a Wingman Rumblepad) doesn’t give the axis
correctly due to a mode problem. If anyone could tell
me something about how to do with this or logitech’s
libraries :P…

The other prob is that in windows, i use old-style
joysticks (game port, not usb) and i cannot get em
detected by SDL(i first add em in the control panel,
but with standar controllers of win). Why could it be?

Many thnx in advance,

Marcos.


The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

It’d be more useful if you could fix the existing code, since that might
be able to be incorporated into the current release. I doubt Sam
will want to introduce DX8 dependencies into the current release (hope
not :), but he might accept a patch to fix this axis problem with the current
code.On Mon, Feb 03, 2003 at 10:23:39PM +0000, Ryan Silk wrote:

I was having trouble reading one of the axes on my Microsoft Sidewinder
force feedback wheel using SDL’s Windows MM joystick driver. The problem is
that it returns data on axes 1, 2, and 5. The SDL joystick driver detects
that axis 3 doesn’t exist and so assumes that there are only 2 axes. I was
feeling adventurous so I went ahead and wrote a new joystick subsystem for
SDL that uses Directx 8 instead. I’m also planning to kludge in some sort
of force-feedback support. I don’t know how helpful this will be, but it
might fix your problems on Windows. If anyone wants it (warning in advance:
it’s pretty ugly) let me know and I’ll upload the source and post a link to
the list.


Glenn Maynard

Yes, indeed, if you could post a patch, I would appreciate it.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment> On Mon, Feb 03, 2003 at 10:23:39PM +0000, Ryan Silk wrote:

I was having trouble reading one of the axes on my Microsoft Sidewinder
force feedback wheel using SDL’s Windows MM joystick driver. The problem is
that it returns data on axes 1, 2, and 5. The SDL joystick driver detects
that axis 3 doesn’t exist and so assumes that there are only 2 axes. I was
feeling adventurous so I went ahead and wrote a new joystick subsystem for
SDL that uses Directx 8 instead. I’m also planning to kludge in some sort
of force-feedback support. I don’t know how helpful this will be, but it
might fix your problems on Windows. If anyone wants it (warning in advance:
it’s pretty ugly) let me know and I’ll upload the source and post a link to
the list.

It’d be more useful if you could fix the existing code, since that might
be able to be incorporated into the current release. I doubt Sam
will want to introduce DX8 dependencies into the current release (hope
not :), but he might accept a patch to fix this axis problem with the current
code.