SFML community forums
Help => General => Topic started by: Pixel_Outlaw on November 11, 2014, 12:03:55 am
-
Hello all,
I need to add joystick support in my game and I know that joystick manufacturers handle controllers very differently. I don't have a PS3 and Xbox 360 joystick to test with.
Can anyone tell me what axis is mapped to each part of the controllers and what buttons are which?
Also what the expected deadzone is for these.
-
On my X360 gamepad
Buttons:
A 0
B 1
X 2
Y 3
LB 4
RB 5
back 6
start 7
L (left stick) 8
R (right stick) 9
Axis:
left stick
left - X
right + X
up - Y
down + Y
right stick
left - U
right + U
up - R
down + R
D-pad
left - povX
right + povX
up + povY
down - povY
Triggers
LT + Z
RT - Z
(yeah triggers are on the same axis :( )
-
Thanks G. anyone know roughly the deadzones?
-
There isn't a deadzone. If you want one you have to do it yourself.