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 fuzzywobs · Jul 22, 2010 at 06:44 PM · inputcontrollerxboxsplit-screen

2 Xbox Controllers for Split Screen Game

I have a split screen game where the controllers are xbox controllers. The thumbsticks work perfectly for the 2 but somehow the buttons on both controllers are the same. Even though i have set the A button for player one to jump on controller one, and button B for player 2 to jump on controller 2, if i hit either button on either controller the character jumps. IE if i hit A on the second controller, the first player jumps. I have all the Input settings changed to either Joystick 1, or Joystick 2 depending on which player it is to no avail. Any ideas?

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 qJake · Jul 22, 2010 at 10:20 PM 0
Share

You need separate inputs for separate players... you can't just have "Jump", you need "Player1Jump" and "Player2Jump" or something like that. The Input $$anonymous$$anager cannot distinguish between different "players".

2 Replies

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

Answer by fuzzywobs · Jul 27, 2010 at 01:51 PM

It seems that when testing your game inside unity, even if you change the input settings to controller 1 or 2 it acts as though the buttons are from the same controller. When you build the project and run it, when choosing the settings at which to run the game ie Display settings etc (after its built), you can choose an Input settings and changed the button configuration. You just need to rechoose your buttons and enter them with the controller themselves, and they will change from "Joystick Button 12" to "joystick button 12, joystick 2". So once you change it there it will work perfectly in the game, just not in the testing!

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 JamieFristrom · Apr 28, 2012 at 04:06 AM

When you have an input set to 'mouse or keyboard button' it ignores the joystick field - that's just for axes. The information is in the button string. For example, instead of 'joystick button 1' use 'joystick 1 button 1' or 'joystick 2 button 1'. (It starts counting at 1.)

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

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

1 Person is following this question.

avatar image

Related Questions

How do I use an Input axis instead of Input.mousePosition??? 1 Answer

Gamepad: Trigger Axes 0 Answers

How to have multiple types of controller input using the input manager 0 Answers

The value of Input.GetAxis("Horizontal") gets stuck when Xbox controller is disconnected... 0 Answers

Input Fields using an Xbox One Controller 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