• 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 /
  • Help Room /
avatar image
Question by ilyavolkov · Mar 11, 2017 at 10:15 AM · inputcontrollermultiplecontrollers

Multiple Joystick Input Trigger all Inputs

I have a 2-4 local multiplayer game set up. The game is simple and the multiple jostick controlls work fine with the x and y axis but i tried to Setup another button wich every could use ( a- Button ,xbox 360 Controler). Every Player has his own numer 1-4 and then gets the Input by : Input.GetButtonDown("Jump"+playerCounter) as i said the axis work perfectly fine but when i use this as playerOne with Joystick 1 all the Inputs "Jump1","Jump2",... are triggered though they are all assigned to their own Joystick.

Really need help with this ;( alt text

unityhelp.png (98.1 kB)
Comment

People who like this

0 Show 0
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

4 Replies

· Add your reply
  • Sort: 
avatar image

Answer by BjornNelson · Apr 16, 2017 at 06:45 AM

In addition to configuring the "Joy Num" for each button, I believe you will also need to modify the "Positive Button" field. For instance, the Positive Button for button 0 on joystick 1 will be: "joystick 1 button 0", instead of "joystick button 0". These feels superfluous, as the Joy Num field is already constrained to the correct joystick. But, it seems to work. There are more details here: https://docs.unity3d.com/Manual/ConventionalGameInput.html

Comment
and1i
pango
Harvizl
parassha97
firegate666
mfloriani

People who like this

6 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 finalzesty · Apr 25, 2019 at 10:58 PM 0
Share

Thank you so much, I was looking around for an answer and you simply told me how.

avatar image

Answer by firegate666 · Jan 21, 2019 at 02:07 AM

Hell no, you saved my life^^ I was already quite desperate. Thank you for pointing towards this documentation. I would not have noticed that tiny detail myself.

Still don't understand why I need to define it twice, but awesome that it works now,

Comment

People who like this

0 Show 0 · 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

Answer by wcg2du · May 12, 2019 at 10:24 AM

It still won't work for me as all controllers identify as joystick 1. Any help?,I still can't get this to work. The controllers all identify as the same joystick I think (as no mater the controller, only player one responds) and I've changed everything!

Comment

People who like this

0 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 firegate666 · May 13, 2019 at 12:53 PM 0
Share

This sound like a general hardware setup issue. If you connect 2 joysticks and they both connect as joystick 1 this is an issue beyond Unity

avatar image

Answer by Gawron10001 · Jul 04, 2019 at 07:38 PM

This saved my ass either @BjornNelson, thanks!

Comment

People who like this

0 Show 0 · 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

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

106 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 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 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 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

How can i tell which joystick input came from? 1 Answer

I have an issue with the code for Submenu. Someone to help me ? 1 Answer

Contollers are unusable when already plugged in when starting build/editor 0 Answers

Im trying to make a top-down couch co-op game for the Xbox one and Im having issues getting player one and player two game pad controllers to control two seperate players 0 Answers

Simple Third Person Controller and Animation Script 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