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 bpears · Jan 05, 2013 at 03:13 AM · controllerinput managerxbox360

Input manager is conflicted, help?

I have set up mouse x and mouse y for keyboard. Then another set of mouse X and mouse Y for xbox 360 controller, they all work, but when not doing anything, the camera drifts down/sideways on its own... :(

Comment
Add comment · Show 7
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 Landern · Jan 05, 2013 at 05:11 AM 1
Share

Umm, how is your character setup and now do you deter$$anonymous$$e that some how it's the Input settings that are automagically moving your camera without any input? Is your camera on a slope? Are you using physics on the camera? If you are, then yeah, it may slide. If there is a script for your input, post it, perhaps there is something odd in an update statement that isn't constrained with logic.

Example of a simple mistake like that, sometimes people don't use curly braces when defining an if statement/block, this is nice and up to the user when the if/else statement has single instructions, however people will forget when they want more then one line of execution after an if statement and don't placed opening/closing curly braces around the two lines of code for execution, this means the second will most likely always execute when it wasn't intended. Please provide more information.

avatar image Eric5h5 · Jan 05, 2013 at 05:24 AM 1
Share

Sounds like the controller needs calibrating, or you could increase the dead zone.

avatar image Landern · Jan 05, 2013 at 05:26 AM 1
Share

Yeah i noticed the other post. Did you setup everything within the input manager as was on the community wiki? particularly the sensitivity? If you ever look at the output from the analog sticks on a ps2/3/xbox 360 controller, they are always kinda twitching, i'm pretty sure the sensitivity will help not take slight creep from the sticks even as you are not touching them.

avatar image Eric5h5 · Jan 05, 2013 at 06:24 AM 1
Share

What results do you get if you use this script and nothing else, set the dead zone to 0, and don't touch the analog stick? (And set Horizontal and Vertical to the appropriate joystick axes in the input manager, of course.)

 function Update () {
     Debug.Log (Input.GetAxis("Horizontal") + " " + Input.GetAxis("Vertical"));
 }
avatar image bpears · Jan 05, 2013 at 06:31 AM 1
Share

I took the input manager from unity wiki community and swapped out what I had, works now. I must have had something screwed up, but I don't know what it was. Thanks for the help though everyone. Setting up this controller is a headache for sure..

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

Multiple Cars not working 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Unity Build Crashes Once Characters Touches Ground 0 Answers

Help with Colliders? 0 Answers

Unity does not recognize controllers in the right order, or mixes them up 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