SFML community forums

Help => Window => Topic started by: kipbits on December 28, 2015, 01:06:38 am

Title: sf::Joystick DualShock3 Sixaxis Analogue Triggers
Post by: kipbits on December 28, 2015, 01:06:38 am
Hey all, Happy Holidays!
I'm playing around here with a Dualshock3 Sixaxis controller. I've gotten the basic info following Joystick API, but something does not look right.
Basically, I'm wondering does SFML recognize Dualshock's analogue R2 & L2 triggers?
SFML reports the connected controller as follows:

Joystick 0 is connected! PLAYSTATION(R)3 Controller vendor:1356 product:616
   J0 has X axis!
   J0 has Y axis!
   J0 has Z axis!
   J0 has R axis!
   J0 has 19 buttons
Joystick 1 is NOT connected!
Joystick 2 is NOT connected!
Joystick 3 is NOT connected!
Joystick 4 is NOT connected!
Joystick 5 is NOT connected!
Joystick 6 is NOT connected!
Joystick 7 is NOT connected!

I seam to have both thumbsticks and all the buttons, plus 3 that i havent been able to identify. I was kindof expecting to have minus 2 buttons, replaced by active U&V axes for the triggers. On Wikipedia (https://en.wikipedia.org/wiki/Sixaxis), it says that Dualshock3 Sixaxis supports 2 analogue sticks and 2 analogue triggers.

I'm wondering if i can get the full functionality for those triggers in SFML?

Thanks
Title: Re: sf::Joystick DualShock3 Sixaxis Analogue Triggers
Post by: zsbzsb on December 29, 2015, 09:38:23 pm
SFML simply reports what it gets from the OS regarding button(s)/axis(s). I wouldn't be surprised if your R2/L2 are reported as one of the buttons.
Title: Re: sf::Joystick DualShock3 Sixaxis Analogue Triggers
Post by: Mr_Blame on January 10, 2016, 02:06:53 pm
All input apis on pc do not support dualshock 3 or 4 this stuff must emulated using non-standart software.