Recommended way to do rumble?

From the mailing list and reading code it looks like SDL 1.3 has
rumble is available only for Nintendo DS and there is pretty extensive
force feedback support through SDL_haptic.

So I’ve got a Logitech Rumblepad 2, and SDL_HapticOpenFromJoystick
says it has haptic ability. The best way I found to add some rumble
was by applying an SDL_HapticEffect of type SDL_HAPTIC_SINE. The
problems are that I don’t think this is the right way to do rumble,
and the rumble sort of comes and goes due to the sine wave rising and
falling (SDL_HAPTIC_CONSTANT didn’t work at all with this device). I
can’t find a better way to do this in SDL yet. Is there one, or is
one planned?–
Terry Welsh / mogumbo ‘at’ gmail.com
www.reallyslick.com / www.mogumbo.com

Force feedback is still a mystery to me. The SDL code works on
Windows, Mac OS X and Linux, but how to get a specific feeling from
the types of force feedback available I’m still not clear on. It’s
more complicated by the fact that different devices support different
types and levels of response.

I would suggest playing with the testhaptic test program included with
the SDL sources, and doing research online on force feedback
documentation.

If anybody wants to provide an SDL force feedback tutorial, I would
really appreciate it! :)On Mon, Nov 2, 2009 at 11:33 PM, Terry Welsh wrote:

From the mailing list and reading code it looks like SDL 1.3 has
rumble is available only for Nintendo DS and there is pretty extensive
force feedback support through SDL_haptic.

So I’ve got a Logitech Rumblepad 2, and SDL_HapticOpenFromJoystick
says it has haptic ability. ?The best way I found to add some rumble
was by applying an SDL_HapticEffect of type SDL_HAPTIC_SINE. ?The
problems are that I don’t think this is the right way to do rumble,
and the rumble sort of comes and goes due to the sine wave rising and
falling (SDL_HAPTIC_CONSTANT didn’t work at all with this device). ?I
can’t find a better way to do this in SDL yet. ?Is there one, or is
one planned?

Terry Welsh ?/ ?mogumbo ‘at’ gmail.com
www.reallyslick.com ?/ ?www.mogumbo.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC