SDL Joystick support

Hi, the SDL 1.1 development tree has support for joysticks.
I am really interested in feedback on how well it works, so if you port
the DGEN/SDL code to use it, please let me know. :slight_smile:

If you are interested, check out the new header SDL_joystick.h for the
full API.

Thanks!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hi, the SDL 1.1 development tree has support for joysticks.
I am really interested in feedback on how well it works, so if you port
the DGEN/SDL code to use it, please let me know. :slight_smile:

I took out the Linux joystick code I had in Gem Drop X and replaced it
with SDL code. Took a bit of figuring out how to do this (API’s were
somewhat different, and I kept thinking that SDL’s joystick info. could
ONLY be accessed as events… luckily I was wrong :slight_smile: ), but it seems to work
fine.

(I also added the SDL keyrepeat code, since the original game used Xlib,
which handled keyrepeat for me. The newer SDL version of Gem Drop X didn’t
support keyrepeat until I linked it with SDL 1.1 :slight_smile: )

'course, I’m using my code as though the stick were digital (in fact, the
only joystick I have IS a digital-style stick - an NES-style game-pad),
and only looking at one axis… So it’s not like I’m testing this too
robustly. :slight_smile:

-bill!