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
3
Question by jhooks098 · Oct 17, 2012 at 04:21 PM · joystickinputmanager

Joysticks and the input manager. Joystick 1 recognized as all joysticks.

I'm trying to set up multiple controllers in the input manager but its not working as expected.

I have 4 entries, Jump1, Jump2, Jump3, Jump4

Each look for joystick button 0 (A) from their respective joystick numbers.

The problem is when I test it, using the code Input.GetButton("Jump1"), 2, 3, 4 joystick 1 fires all 4 jumps. Here's a screen shot of Jump1, and Jump2

alt text

Why is this happening? Thanks in advance

input.png (20.3 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

1 Reply

· Add your reply
  • Sort: 
avatar image
23
Best Answer

Answer by Loius · Oct 17, 2012 at 04:47 PM

"Joystick Button 0" is "Button 0 on any joystick" You want "Joystick 1 Button 0", which is "Button 0 on Joystick 1".

Edit - Oh, and "Joy Num" is specifically for the Axis controls. :S

Comment
Add comment · Show 3 · 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 Seth-Bergman · Oct 17, 2012 at 06:24 PM 1
Share

one other issue in your current setup: you must change "Type" to "$$anonymous$$ey or $$anonymous$$ouse Button", or else it is using the axis input

avatar image swatmaster69 · Nov 20, 2012 at 09:54 PM 0
Share

Thanks, Loius. I even remember reading this in the manual, but forgot about it, and my game was going nuts.

Jhooks, you should mark this as the answer so other people will be more likely to read it.

avatar image jillytot · Feb 15, 2014 at 10:46 PM 1
Share

Yes please post this as the answer. It took me way too long to stumble across this page!

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

13 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

Related Questions

Do multiple xbox controllers adjust their IDs on change 0 Answers

Input controls at run time reset to duplicate controls, why does this happen? 0 Answers

GameController Unity wrong Axis-Values 0 Answers

Inputmanager joystick axis alternative buttons 0 Answers

My input manager doesn't always respond to my code 2 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