Input.GetAxis("Vertical") always gives "1"- even when not pressed...help??

Hi all-

Very simple part of a script is going loco- Input.GetAxis(“Vertical”) is always returning “1”, even when neither up arrow or “w” is pressed. I’m not having keyboard issues, so I don’t think it could be an issue there…but something is a little wonky here.

I’ve set a “print” command to always show the value, and it’s constantly 1, then -1 if i press “down”, then back to full 1 if I let off down key. Just after I un-click the play button, it goes back to zero for a few lines of print…very strange.

Any help?? Frustrating, silly little problem!
gw

Maybe you have an errant joystick or gamepad plugged in which is mapped to that axis?

–Eric

doh…yep, hidden joystick i had connected, stuffed out of site, and forgotten…lol. (SMACK forehead).

thanks! :slight_smile: