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 ourben · Nov 20, 2010 at 02:44 AM · joystickgamepadxboxcontroller

My gamepad axes data is somebody elses, or CMB?

I've tried an XBox 360 controller and it was useless. So I tried the classic XBox S controller with XBCD thinking the extra control would save the day, it hasn't.

Basically the raw data I get with Input.GetAxisRaw(asix_n) is just, well, it's wrong.

Take the X axis for example on the left stick. Windows shows me the pretty graphic perfectly, no significant noise, all fun. I calibrate it for lulz, still fine. XBCD control panel graphics report it perfectly too. Then I try in Unity. Mental.

The range reality reports, which in this case includes Windows, is a smooth -1 to 1 left to right, resting at 0 in the center.

The range Unity reports is 1 at the left to 1 center (as in, left of center useless), then -1 to 1 from the center to the right.

Is there a way to get closer than Input.GetAxisRaw - because obviously Unity is taking a brief detour through interdimensional spacetime to translate what Windows input is telling it (which conveniently happens to be the truth)?

Please make me happy face.

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 Rennat · Dec 01, 2010 at 05:24 PM 0
Share

is the output of Input.GetAxis() usable?

2 Replies

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

Answer by sanderbontje · Dec 24, 2010 at 12:29 PM

The same happened to me with a regular MS Sidewinder joystick when switching from Unity 2.6 to 3.1.0f4. Use the registry hack provided by andeeee (http://forum.unity3d.com/threads/58016-Joystick-calibration?p=372111&viewfull=1#post372111) to force Unity to use DirectInput instead of the default RawInput.

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
0

Answer by Jean-Fabre · Apr 19, 2011 at 07:33 AM

Hi,

If andeee registry hack is not helping, have you calibrated your joystick?. I lost quit sometime on that as well... :)

Bye,

Jean

Comment
Add comment · Show 2 · 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 ourben · Apr 20, 2011 at 04:57 PM 0
Share

Thank you for this. I fixed it with the registry hackery in the end, but I hadn't been back here since. I forgot about this post, I apologise. :-)

avatar image imapler · Apr 15, 2012 at 04:01 PM 0
Share

i have this exact issue but andeee registry hack is not working it causes GetAxis and GetAxisRaw to just return 0 in all cases. i have tried to calibrate and it looks fine in windows.

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

No one has followed this question yet.

Related Questions

Unity ignoring joysticks of specified number 0 Answers

Xbox controller joystick axis small movements? 1 Answer

How do switch control for canvas using joystick? 0 Answers

How do I add input for two different local players? 1 Answer

Get Joystick Input ( for example KeyCode.Joystick1Button0) inside Editor Mode 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