Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon
This was successfully implemented for Linux, Windows, and Mac OS X.
See include/SDL_haptic.h for details on the API.
Haptic Subsystem for SDL. What’s available:
Cross platform API for handling Force Feedback devices.
Ability to test Mouse/Joystick for Haptic capabilities.
Support for all standard force feedback events (including custom)
on platforms that support them.
Full documentation for all features.
Getting started with haptic devices with SDL:
What you will need:
Force feedback device
Windows, Mac OS X or GNU/Linux operating system.
Check out the example test/testhaptic to see if your device supports
haptic commands and see how well it works. Read the source to see how
it’s done. For reference and documentation refer to the SDL_haptic.h
doxygen comments. They also include insight on how to use the device
better (like what should work, what won’t…) and ASCII art in some
explanations.
Questions or comments? You can contact me on the mailing list or on
IRC. Report bugs to the tracker.
Thanks for a great Google Summer of Code Project!
Edgar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Is this the reason why the testsprite
example shows a white box around the sprite
in 32bit Color Mode ?
Yep, I haven’t looked into why this is happening though. It seems to be
a new problem, and what’s wierd is that it also happens in testsprite2,
which doesn’t use the SDL blit code, it’s straight OpenGL.
See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
There are still a few bugs in this that I’m working out during whatever
free time I manage to scrape together (now that I’m back in school =) )
Now that it’s in trunk, I also started to add the beginnings of the
rumble pak support in haptic.
-DarrenOn Sun, 2008-09-21 at 09:11 -0700, Sam Lantinga wrote:
Port SDL 1.3 to the Nintendo DS, add touch input API
by Darren Alton, mentored by Sam Lantinga
Anyone has compiled this successfully with visual studio?
I loaded the solution provided with the package. Did exactly like when I
compiled 1.2 libs and dll.
Changed the include path to 1.3 includes
Adding the new libs to my project and but the new sdl beside my exe.
Build no errors.