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
4
Question by RyanSpicer · Jun 15, 2015 at 04:45 AM · inputmanagercontrollersjoysticksaxes

Inconsistent Output from Input.GetAxis across controllers

I am trying to set up joystick input through the Input Manager in Unity 5.1 Personal.

I have several different joysticks connected to the box I dev on. Some behave correctly, and some display a very strange error state.

What I mean by "correct" behavior is that, when the joystick is centered, each axis outputs zero. Moving the X axis left, for instance, should proportionally decrease the X axis value to a minimum of -1, and to the right should proportionally increase the X axis value to +1.

What I see instead on some devices (notably a Microsoft Sidewinder Force Feedback 2 stick, and my FrSky Taranis rc radio, which acts as a game controller when connected via usb) is that the X and Y axis "neutral" positions reads as -1. The far right extreme (for X) reads as +1, and if I move the control stick to the left, all values left of center also report as +1. The same issue occurs with all axes on the Taranis (though not the throttle on the FFB2, for some reason).

This appears consistent as I plug and unplug devices from my dev box.

Windows' Game Controllers control panel widget reports the axes "correctly."

Any idea what could be going on?

Comment
Add comment · Show 2
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 Kjell-Andersson · Nov 09, 2016 at 07:08 PM 0
Share

I also have a $$anonymous$$icrosoft Sidewinder Force Feedback 2 that I'm trying to use in Unity without any luck. The axis values are not read out as expected. Are all joysticks meant to be read out with values from -1 to 1 with center at zero in Unity? In that case maybe we should post a bug report regarding the Sidewinder.

avatar image kielpease · Sep 01, 2018 at 03:58 AM 0
Share

Did you ever solve this issue? I'm having the same type of problem with my arduino controller (although there might be a calibration issue for me).

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by BL4CKF0X · Jan 23, 2019 at 02:27 PM

Hey there, I'm having the same issue with a steering wheel controller. It seems this is a bug that is not yet fixed? Did you manage to find a workaround for this problem?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple controller buttons Xbox 360 & PS3 different controllers 1 Answer

Is it possible to set up multiple controllers without writing each one out in the Input Manager? 1 Answer

Virtual joystick in the new input system 0 Answers

Problem setting up twin stick shooter for mobile device... 1 Answer

How many inputs in Unity's Input Manager is considered bad? 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