- Home /
Question by
DebrisHauler · Jun 24, 2015 at 10:35 AM ·
inputcontrollerinputmanager
Why is my input axis behaving as an integer?
I've set up the right trigger (10th axis) to "Fire1" in the InputManager, but the trigger only ever gives me the values of 0 or 1 during gameplay. I know that my controller supports a range of values on the triggers, because I have used it with other games. So why is Unity treating my trigger like a button?
Code snippet:
gameObject.GetComponent ().AddForce (transform.up * 50.0f * Input.GetAxis ("Fire1"));
Comment
Is the "Type" of Fire1 set to "Joystick Axis" ins$$anonymous$$d of "$$anonymous$$ey or $$anonymous$$ouse Button"?
Answer by DebrisHauler · Jun 25, 2015 at 12:45 PM
Already had it set to "Joystic Axis", sensitivity was the problem. Thanks, guys! It's odd that unity had the sensitivity defaulted to 1000 instead of 1.