Dualshock 3

Help with Setup, Hardware, Performance or other Issues...Or just pimp your rig.
Post Reply
jpenguin
Private First Class
Private First Class
Posts: 128
Joined: Wed Jun 11, 2008 11:56 pm

Dualshock 3

Post by jpenguin » Fri May 04, 2012 11:53 pm

None of the buttons seem to be recognize, connecting via bluetooth. MacOS X 10.6.8

BZFlag does see the pad (Axis works) Everything on pad works great with SuperTuxKart

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Dualshock 3

Post by blast » Sat May 05, 2012 12:33 am

We use SDL for input on our Mac binaries. SuperTuxKart uses the Irrlicht engine which seems to have it's own input system.

Most of the buttons on the Dualshock 3 are also pressure sensitive, and two of the triggers are analog. It's likely that SDL doesn't support that at this time. Do any of the digital buttons (Start, Select, "PS", L3, R3) work?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

jpenguin
Private First Class
Private First Class
Posts: 128
Joined: Wed Jun 11, 2008 11:56 pm

Re: Dualshock 3

Post by jpenguin » Sat May 05, 2012 2:01 am

Yes, I just tried the rest of the buttons, it's surprising--
L2 & R2- work
L3 & R3- work
Select and Start- work
All 4 DPad buttons- work

I tried it with SecretMaryoChronicals (Uses SDL+CEGUI, I think) and everything seem to function there as well
And Dolphin-EMU work fine too

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Dualshock 3

Post by blast » Sat May 05, 2012 2:19 am

Then you'd have to compare their usage of SDL with ours.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Alexander LAW
Private
Private
Posts: 3
Joined: Fri May 02, 2008 2:27 pm

Re: Dualshock 3

Post by Alexander LAW » Sun May 13, 2012 6:27 pm

The issue related to the joystick buttons assignment.
Here you can see that the Sixaxis Dualshock buttons use id's up to 16.
http://ps3.jim.sh/sixaxis/usb/
But bzflag supports only 12 joystick buttons (after the revision http://bzflag.svn.sourceforge.net/viewv ... sion=22395).
And if you add next 4 buttons (13..16), it will support all the Sixaxis buttons too.
If it would be helpful, I can prepare the patch.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: Dualshock 3

Post by JeffM » Sun May 13, 2012 7:59 pm

the code in svn should already be updated to support 16 buttons
ImageJeffM

Alexander LAW
Private
Private
Posts: 3
Joined: Fri May 02, 2008 2:27 pm

Re: Dualshock 3

Post by Alexander LAW » Mon May 14, 2012 3:47 am

I can't see such revision there yet:
http://bzflag.svn.sourceforge.net/viewv ... e&view=log

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Re: Dualshock 3

Post by JeffM » Mon May 14, 2012 3:50 am

My bad, I knew we updated the buttons, but it was 12 not 16.
ImageJeffM

Post Reply