PS2 controllers

Is there any support in SDL (either currently or
planned) for force feedback devices, including the
vibration function of the PS2 pads?

Also, testjoystick misses one of the analog sticks and
2 of the buttons, is this because they are reported to
linux strangely, or is it a problem with SDL, or is it
that SDL won’t support controllers with 2 sticks
(effectively 4 axes) because they are comparatively
rare, and SDL wants to remain portable?

If I can use the vibration function and the second
stick and the 2 ‘analog buttons’ through SDL, I’d like
to, otherwise I’ll have to add support through
non-portable code, which I’m trying to avoid right
now.

I only wish my developing skills were good enough for
me to submit code to the CVS to support such things :slight_smile:

Paul__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

Is there any support in SDL (either currently or
planned) for force feedback devices, including the
vibration function of the PS2 pads?

None currently, none in the future unless and until such support becomes
part of the standard API, which I believe is currently not the case. SDL
is an interface, not a driver - it provides only what the underlying
drivers provide.

Also, testjoystick misses one of the analog sticks and
2 of the buttons, is this because they are reported to
linux strangely, or is it a problem with SDL, or is it
that SDL won’t support controllers with 2 sticks
(effectively 4 axes) because they are comparatively
rare, and SDL wants to remain portable?

I have a PS2-like pad (AxisPad) which reports one three analog sticks (one
of which is actually digital) and 20 buttons. It actually has 12 buttons
and a switch (button 19) which is used by the win32 drivers for button
mapping and programming.

I’d guess this is a Linux-side problem, not SDL.

If I can use the vibration function and the second
stick and the 2 ‘analog buttons’ through SDL, I’d like
to, otherwise I’ll have to add support through
non-portable code, which I’m trying to avoid right
now.

I only wish my developing skills were good enough for
me to submit code to the CVS to support such things :slight_smile:

As I said, I think the problem is Linux-side anyway. I don’t have any
analog buttons here, but my USB device works great. I’ve not yet tried
one of the USB PSX/PS2 controller adapters in Linux, but they should work
if they provide standard USB HID joysticks. The thing is, they probably
do not. =(On Sun, Sep 08, 2002 at 07:10:20AM -0700, Paul Smith wrote:


Joseph Carter This end upside-down

Yorick: no problem with indexed color palettes for images, as
long as you can pick the palette
Obviously the people creating quake were colour-blind but that
doesn’t mean you have to be

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020908/73361c56/attachment.pgp

Is there any support in SDL (either currently or
planned) for force feedback devices, including the
vibration function of the PS2 pads?

Not at the moment, but it is being considered for SDL 2.0.
Actually, do you know of any way to trigger the vibration in PS2 pads
from the Linux drivers?

Also, testjoystick misses one of the analog sticks and
2 of the buttons, is this because they are reported to
linux strangely, or is it a problem with SDL, or is it
that SDL won’t support controllers with 2 sticks
(effectively 4 axes) because they are comparatively
rare, and SDL wants to remain portable?

SDL supports up to 256 buttons and axes. I’ve just run some tests
and it seems to be a limitation of the Linux joystick driver on the
PS2.

If I can use the vibration function and the second
stick and the 2 ‘analog buttons’ through SDL, I’d like
to, otherwise I’ll have to add support through
non-portable code, which I’m trying to avoid right
now.

If you end up doing that, please let me know so I can roll in your
changes into SDL.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

In localhost.sdl, you wrote:

As I said, I think the problem is Linux-side anyway. I don’t have any
analog buttons here, but my USB device works great. I’ve not yet tried
one of the USB PSX/PS2 controller adapters in Linux, but they should work
if they provide standard USB HID joysticks. The thing is, they probably
do not. =3D(

Actually, the “Kiky-Joy” ones from Soyo, at least, provide HID
joystick devices. Now, they don’t work with all controllers, but they
do work with real Sony controllers (at least the analog one) under
FreeBSD, and so I’m assuming Linux.

It’s not clear to me how it would work with a DDR mat, though.–
bryan k ogawa http://www.unobvious.com/

It’s not clear to me how it would work with a DDR mat, though.

     It would work as a regular PS1 controller. The DDR MAT is mapped 

with the digital directional and digital buttons (PS1). As you may guess,
up, down, left and right are the arrows. Circle is used at top right as a
confirm button, and square is used at top left as cancel button. They
provide start and select buttons on the MAT also, but they are hardly used,
as everything is done with circle and square (the latest version released
in the US won’t even care to check select and start).

     Paulo

Do you have a source for these? I’ve yet to find something providing a
standard HID joystick device from a PS2 controller, and would greatly love
to find one.

Bonus points if someone’s found a way to access PS2 memory cards in Linux!On Wed, Oct 16, 2002 at 10:09:17AM -0700, Bryan K. Ogawa wrote:

As I said, I think the problem is Linux-side anyway. I don’t have any
analog buttons here, but my USB device works great. I’ve not yet tried
one of the USB PSX/PS2 controller adapters in Linux, but they should work
if they provide standard USB HID joysticks. The thing is, they probably
do not. =(

Actually, the “Kiky-Joy” ones from Soyo, at least, provide HID
joystick devices. Now, they don’t work with all controllers, but they
do work with real Sony controllers (at least the analog one) under
FreeBSD, and so I’m assuming Linux.


Joseph Carter Now I’ll take over the world

i’m trying to convince some netcom admins i know to convert
to Debian from RH, netgod, but they are DAMN stubborn
why RH users so damned hard headed?
it’s the hat

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021017/5345519a/attachment.pgp

Do you have a source for these? I’ve yet to find something providing a
standard HID joystick device from a PS2 controller, and would greatly love
to find one.

I’ve got one of these: http://www.jandaman.com/psxn64usb.shtml It
pops up on my windows box as a USB HID device. I don’t know how
reliable that is, and if it follows spec exactly, but from all
appearences it works fine.

Bonus points if someone’s found a way to access PS2 memory cards in Linux!

Adapters for this aren’t too difficult to make on your own if you’re
handy with a soldering iron. The interface they use is basically
identical to the one used by the controllers (the controller port
and the memory card port have most of their pins shorted together,
actually), and you can pretty easily drive it with a parallel port.

Will investigate the USB controller adapter. I’ve got a USB controller I
like well enough, but it’s not the same as the DualShock 2.On Thu, Oct 17, 2002 at 04:21:20PM -0500, Maciej Babinski wrote:

Bonus points if someone’s found a way to access PS2 memory cards in Linux!

Adapters for this aren’t too difficult to make on your own if you’re
handy with a soldering iron. The interface they use is basically
identical to the one used by the controllers (the controller port
and the memory card port have most of their pins shorted together,
actually), and you can pretty easily drive it with a parallel port.

I’m not, unfortunately. Also, while I’ve seen PSX software for Linux, I
haven’t seen PS2 software. I’m just trying to avoid spending $100 on the
silly PS2 zip drive to back up the hundreds upon hundreds of Final Fantasy
saves stored in my deck of memory cards. =)


Joseph Carter Sooner or later, BOOM!

it’s too bad most ancient unices are y2k compliant
<|Rain|> too bad?
<|Rain|> why, because people won’t upgrade until 2038?

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021017/28b56f4d/attachment.pgp