Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
26
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 · Show 1
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 SilverFang180882 · Nov 05, 2021 at 04:48 AM 0
Share

Is this mapping the same for vanilla X-Box and X-Box 360 controllers?

16 Replies

· Add your reply
  • Sort: 
avatar image
15

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
14

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
5

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
1

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 2 · 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 Sondre-S · Jan 18 at 07:57 PM 0
Share

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

avatar image
1

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
  • 3
  • 4
  • ›

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.

Follow this Question

Answers Answers and Comments

28 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 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 move player with xbox controller 1 Answer

Mobile Button input broken when built for Mac/PC? 0 Answers

Gamepad input, axis OR button 0 Answers

How to create and set different Player ID's to individual controllers? 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