- Home /
C# Get Xbox One Controller Analog Sticks, Triggers and D-pad
I have an xbox one controller and I would like to know what the analog sticks, D-pad and triggers are labeled as. Unity keeps calling the controller's buttons joystick buttons so I'm thinking they might be something like joystick axes or something like that.
Answer by rodude123 · Dec 31, 2015 at 09:40 AM
@DangerousBeans Ok here is the inputs that you will need.
For the D-pad it is:
up = joystick button5
down = joystick button 6
right = joystick button 8
left = joystick button 7
For the right stick:
X-AXIS
Y-AXIS
For the left stick:
3rd AXIS (right left)
4th AXIS (up down)
For the buttons:
a = joystick button 16
b = joystick button 17
x = joystick button 18
y = joystick button 19
select = joystick button 10
start = joystick button 9
left bumper = joystick button 13
right bumper = joystick button 14
left trigger = 5th AXIS
right trigger = 6th AXIS
Hope this helps, this all the inputs you will need for the XBOX one controller. This is what I know works but it may not work for you. If this worked please could you put this as the correct answer.
Answer by Th0re · Sep 22, 2017 at 07:37 PM
No longer accurate, apparently. See this: https://ritchielozada.com/2016/01/16/part-11-using-an-xbox-one-controller-with-unity-on-windows-10/
No, they changed it - just to make it a bit more confusing. :D