Quantcast
Channel: Questions in topic: "walk"
Viewing all articles
Browse latest Browse all 88

Joystick gamepad input overly sensitive

$
0
0
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.

Viewing all articles
Browse latest Browse all 88

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>