Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by SantiN90 · Nov 28, 2012 at 09:38 PM · controllerdisplayordernumberxbox

Accessing quadrant/joystick number when using multiple xbox 360 controllers

Hi, my team and I are currently developing a sidescroll platformer in which there can be as little as two players on screen, and as much as four. Everything works just fine, we're using Input.GetButtonDown for remappable keys and Input.GetKeyDown for unbindable keymappings (for menus and such).

Currently our project only supports Xbox 360 Controllers for Windows. The "problem" (note the quotation marks) is that quadrants in the controller (which supposedly display player number) are all mixed up when compared to the way Unity detects them. So you can have, say, player 2 having the quadrant for player 4 and player 4 having the quadrant for player 3 and such..

My question would be if there is a way of accessing gamepads in the order Windows detects them. Or if the quadrant information can be accessed somehow in order to rearrange player numbers accordingly.

I know it's not much of a "big deal" compared to what is found everyday on the site, but it really takes out the quality to the product we are aiming for.

Thanks for your time. :)

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by avatara359 · Jan 22, 2013 at 06:08 AM

I need to know this as well. The only possible solution I can think of is to map all 12 possible joysticks in the unity input editor and poll all 12 each frame. Then have each player 'press start' and detect that input and assign a 'unity joystick quadrant" number to grab all input from.

Is there a better way to make sure a "xbox 360 controller on quadrant 1" is assigned to "unity joystick 1"?

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 SantiN90 · Jan 22, 2013 at 11:47 PM 0
Share

gee, at least I'm not alone on this boat. :) Let me know if you find something useful.

avatar image Inf · Jul 27, 2014 at 03:18 AM 0
Share

I have the same problem. Did you ever figure it out?

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

11 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

Related Questions

How to assign PS4/XB360 Controller Triggers? 2 Answers

How to get input of PS3 controller's R2 or L2 buttons? 1 Answer

XBox Controller Joystick-Driven Mouse Cursor in Unity 0 Answers

Basic character movement with joystick 1 Answer

Split Screen Issues *Two Xbox 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