- Home /
Xbox one controller mapping [SOLVED]
Hello!
I wasn't exactly sure where to put this so i figured i would add a question and then post and answer for it! I had been searching around and couldn't find a list of the controller mapping for an xbox one controller, on windows 10, in unity 5. So i went ahead and mapped all the buttons and axis.
Hope this helps some one!
EDIT: Guess i can't answer my own question (or im just dumb :P) but heres the mapping!
PS: If someone knows a better place to post this let me know and i can post it there or move it!
Is this mapping the same for vanilla X-Box and X-Box 360 controllers?
Answer by BusyRoots · Jun 14, 2018 at 01:15 PM
Thank you very much @tag104367 and @nadhimali for creating the images.
Based on your pictures and the table from here, I combined both information to one image for Windows and macOS and thought it might be worse sharing.
Note for macOS: The binding is based on this driver (works for Xbox 360 and Xbox One controller).
For any other controller see this very nice thread: Finding Joystick Mapping Inputs with Unity
For more details (InputManagerSettings and use in C# script) see:
I wanted to upload the images as one .pdf file as well but apparently its to large.
Anyway I hope it helps :).
Best regards,
Bredjo
Answer by nadhimali · May 05, 2018 at 04:26 PM
Just to add a reference for people !
This is the correct map according to my tests
Answer by onecrane · Oct 17, 2017 at 02:12 AM
I'm on Unity 5.6.1f1 using a wired Afterglow controller, and the right joystick axes are switched from what's on this diagram (mine gives axis 4 for horizontal and axis 5 for vertical).
Answer by FireAcid · Sep 22, 2017 at 04:11 AM
Hi there I'm still having trouble with my triggers not working, everything else seems to work fine except the triggers. Any ideas?
Trigger axes differ per platform. See this table.
Triggers are either 9th and 10th axis, or 3rd axis for both left and right (3rd axis for right trigger, and 3rd axis inverted for left trigger).
Your answer
Follow this Question
Related Questions
[XBOX][CONTROLLER][INPUT] Xbox controller "Console/Guide" button not mapped in unity 1 Answer
Mobile Button input broken when built for Mac/PC? 0 Answers
How to move player with xbox controller 1 Answer
Gamepad input, axis OR button 0 Answers
How to create and set different Player ID's to individual controllers? 0 Answers