This sounds great!
Thanks, I hope it will be more great when finished
If you would also be so kind as to send me some
technical details on
PS2Linux Joysticks (as much as you have would be
It has 10 buttons, 1 d-pad “hat”, 2 analog sticks,
as x,y as in the linux driver etc.
I do have a question, in struct _SDL_Joystick, an
analog stick is
represented as 2 axis it appears. So if my joystick
has 1 stick
naxes=2, and so I believe 2 analog sticks naxes=4.
Is this correct?
is only one analog stick (with 2 axis) the only
Something that would be useful would be a purely
stdio SDLJoytest mode.
So I can code/test/debug quicker (currently I use
testjoystick.c for this).
I’m also thinking about the best way of supporting
the extra pressure
sensitive buttons on the DualShock2 controller.
Firstly, there isn’t specifically a PS2Linux joystick,
we’re just talking about a normal PlayStation 2
The usual linux joystick driver isn’t able to use the
2nd analog stick, something has gone wrong in the
chain, either the driver isn’t looking for a 2nd
stick, or the PS2 hasn’t told it it’s there, ore
something like that.
I believe joypadlib uses ioctl() commands to get
button pressures, the 2nd analog stick, and the R3 and
L3 buttons, which the standard linux driver does not.
If you’re looking for the best way to make use of such
things, then really look at the joypadlib source, it’s
a good read.
It’s that comprehensive that I wondered if it should
make it into SDL code, but then not many control
devices have a 2nd stick, so it doesn’t sound like
writing for 2 sticks is a portable feature, so isn’t
needed in SDL at the moment.
Unless of course you could have your games detect
whether 2 sticks exist, and if the 2nd one doesn’t,
map the mouse onto a second stick…
The standard linux joystick driver also doesn’t allow
for the actuators (Sony’s way of saying vibrator, and
avoiding the double-entendre) I think ioctl()s come to
the resuce again to allow joypadlib to access them.
To summarise, joypablib != (standard linux joystick
driver), but then (PS2 pad) != typical joystick.__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more