- Home /
Question by
samanime · Jan 22, 2020 at 07:36 PM ·
inputcontrollerinput.getaxis
Input Dead Not Being Applied to Joystick?
I've some inputs for joystick with a Dead of 0.4 for testing.
I was still getting drift so I started outputting the GetAxisRaw() and GetAxis() values for each:
Debug.Log(Input.GetAxisRaw("CursorXJoystick") + "," + Input.GetAxisRaw("CursorYJoystick") + " " + Input.GetAxis("CursorXJoystick") + "," + Input.GetAxis("CursorYJoystick"));
For some reason, the values of the GetAxisRaw()
are identical to the GetAxis()
values.
I would have expected that if "raw" is less than my deadzone of .4, the GetAxis()
value would be zero. They never seem to not be the same and I still end up with a lot of drift.
Am I misunderstanding something or have something misconfigured? Any ideas?
Thanks.
capture.png
(22.9 kB)
capture.png
(55.6 kB)
Comment