You wrote:_____________________________________
Hi Samuel,
Testing your code uncovered a bug in SDL, I can open
PS2Linux control
pads when they are not plugged in. This confirmed by
also being
present
n test/joytest, I will take a look at finding the
problem in the src.
Regarding improvements to your code, only one analog
stick seems to be
selectable (Left in my case).
The analog crosshair also moves slightly off the
screen, perhaps you
could normalise the range so it fitted in under
600x400 pixels? (TV’s
often overscan…)
Some buttons are not supported it seems, the L3/R3
buttons under the
analog sticks, and the analog values of the action
buttons (perhaps not
supported in native PS2Linux libs…)
Also the vibration function, this is something I would
like to look
into
supporting. I could not see any vibration actuator
code in SDL
currently, how would I go about requesting to assign
myself to this
task?
Cheers
JG
Actually, I asked into this a while ago. There isn’t
really a cross-platform way of dealing with
force-feedback (i.e. actuators). As SDL is a
cross-platform library, force-feeback doesn’t appear.
There is a joypablib written over on the ps2linux site
that with do plenty of things that SDL won’t regarding
PS2 joypads. SDL uses the Linux joystick driver,
which does indeed only report 1 analog stick, and
doesn’t record things like button pressure. (I don’t
think it reports buttons R3 and L3 either). Joypadlib
will, and as far as I know, it works well.
Now, a question to Sam. Is it
possible/feasible/wanted to add support for PS2
joypads into SDL using joypadlib as a backend?
I have a separate issue to do with SDL on PS2Linux, so
I’ll post separately.
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day
http://shopping.yahoo.com