Skip to content

DJLink/Unity-Gamepad-Controller-Xbox-button-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Unity Gamepad Controller Xbox button mapping

Was tired of always searching this and taking me a long time so decided to create this for my own future use and for everyone else who needs it. This is the Unity button mapping for an Xbox 360/Xbox One controller. I guess the one that can cause a bit more confusion before knowing is that DPAD is not actually a button but an axis too.

Button Code Observations
A joystick button 0
B joystick button 1
X joystick button 2
Y joystick button 3
Left Bumper joystick button 4
Right Bumper joystick button 5
View (Back) joystick button 6
Menu (Start) joystick button 7
Left Stick Button joystick button 8
Right Stick Button joystick button 9
Left Stick “Horizontal” X Axis -1.0f to 1.0f
Left Stick “Vertical” Y Axis 1.0f to -1.0f
Right Stick “Horizontal” 4th Axis -1.0f to 1.0f
Right Stick “Vertical” 5th Axis 1.0f to -1.0f
DPAD – Horizontal 6th Axis -1.0f to 1.0f
DPAD – Vertical 7th Axis -1.0f to 1.0f
Left Trigger 9th Axis 0.0f to 1.0f
Right Trigger 10th Axis 0.0f to 1.0f

If you find any errors let me know

About

Unity Gamepad Controller Xbox button mapping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published