• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
19
Question by tag104367 · May 07, 2017 at 11:04 AM · inputbuttonsxboxcontroller

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!

alt text

PS: If someone knows a better place to post this let me know and i can post it there or move it!

xbox-controller.jpg (73.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

10 Replies

· Add your reply
  • Sort: 
avatar image
13

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

alt text

For more details (InputManagerSettings and use in C# script) see:

alt text

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


xboxonecontroller-mappinginunity-part2.jpg (126.8 kB)
xbox-one-controller-unity-windows-macos.jpg (284.5 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
12

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

alt text


xbox-one-controller-map-for-unity3d.jpg (390.0 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
4

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).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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?

@tag104367

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image unity_DKqnJkGo8MOKYQ · Jan 22, 2019 at 05:29 AM 0
Share

Trigger axes differ per platform. See this table.

avatar image
0

Answer by ketuhi5 · Jan 11, 2018 at 06:47 AM

Apart from Trigger everything works. Any Ideas?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[XBOX][CONTROLLER][INPUT] Xbox controller "Console/Guide" button not mapped in unity 1 Answer

How to use both keyboard and xbox 360 controller for input with standard FPS controller? 0 Answers

How to get different Animations when different button combos are pressed 2 Answers

This is not possible to be called for standalone input. Please check your platform and code where this is called (C#) 2 Answers

Unity not detecting Xbox one controller, but Windows 10 is 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges