SFML community forums

Help => System => Topic started by: natinusala on April 09, 2015, 09:14:28 am

Title: Xbox 360 controller left and right triggers
Post by: natinusala on April 09, 2015, 09:14:28 am
Hello,

I'm trying to use a wired Xbox 360 controller with SFML (on Linux) ; everything works perfectly (the 11 buttons + the dpad + the two joysticks) except that the left and right triggers are not recognized as buttons, so... I don't know how to use them.

Am I doing it wrong, is there a special way to use them or should I use another thing such as XInput or xboxdrv ?

Thanks !
Title: Re: Xbox 360 controller left and right triggers
Post by: dabbertorres on April 09, 2015, 09:22:34 am
iirc, they are Axes (http://www.sfml-dev.org/documentation/2.2/classsf_1_1Joystick.php#a48db337092c2e263774f94de6d50baa7).
Title: Re: Xbox 360 controller left and right triggers
Post by: natinusala on April 09, 2015, 10:22:25 am
Which ones ? The POV is the DPAD, the XYZ is the left joystick and the RUV is the right joystick, isn't it ?

Oh I see now, it's POV, XY, ZR and UV... thanks ^^