Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 SpaceAnimal03 · Apr 22, 2020 at 02:56 AM · joystickgamepadrunwalksensitivity

Joystick gamepad input overly sensitive

Hi all,


Context: I'm currently trying to build a platformer which differentiates between walk / run based on the magnitude of the vector returned by the horizontal joystick input on a gamepad. I'm currently using a 3rd party controller (hori switch gamepad), but this issue also happens with my switch pro controller.


Problem: When I move the control stick just slightly, it ends up reaching the max value (1 or -1) very quickly after only moving the joystick 1/3 of the actual distance it can actually travel. I've been using getaxis and getaxisraw to debug.log the horizontal values - both seem to return the same numbers.


What I would expect to see is a more natural gradient/progression from the center of the joystick reporting 0, 0.1, 0.2, etc. until the joystick reaches the very edge, but instead it snaps quickly to 1 or -1. All of the values in the input manager have been left as default. I've tried playing with the sensitivity, but it doesn't seem to help.
Anyone able to help? I've seen a few threads with similar issues, but no one seems to have an answer. I was also curious to know if the rewired input manager may solve this issue.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SpaceAnimal03 · Apr 22, 2020 at 08:25 PM

Found out that it had to do with the controller I was using (the ps4 controllers seemed to work fine). Seems that The hori pad switch controller and also the wireless switch pro controller both have issues with reporting the correct numbers on their analog sticks. The numbers reported can be affected by having steam run concurrently while unity is open since steam applies its own config for the controllers. I tried to use x360ce to fix the issues but it doesn't seem to work still.


Does anyone have any information on how to get the switch controllers to report the correct numbers here? are there any proper drivers for them?

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 SpaceAnimal03 · Apr 23, 2020 at 11:57 AM 0
Share

I found that when using dolphin emulator to set up the controller there was an improvement in the reporting of the axis values, though still incorrect.

Also, someone has made a program that can detect joycons and pro controller on pc https://github.com/$$anonymous$$obot/BetterJoy It didn't help me in particular but could prove useful for others.

avatar image SpaceAnimal03 · Apr 24, 2020 at 04:38 PM 0
Share

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Gamepad.html >> this documentation may also be useful for those facing similar issues

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

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

VSync and Joysticks 1 Answer

gamepad input sensitivity 0 Answers

Slow down and play walk animation on left shift? 3 Answers

Animation problem (noob) 1 Answer

Character controller with key click to move forward 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