- Home /
Problem with Unity autopressing W/Up and A/Left
When I run a scene in my project it automatically presses the unity forward and left movement buttons (W/Up Arrow and A/Left Arrow) even though I am not pressing them down. I have nothing on my PC that would simulate pressing these keys down. Has anyone else had this issue and know how to fix it?
Code used to get button presses is Input.GetAxis("Horizontal"); and Input.GetAxis("Vertical");
Can we see the code you are using to detect the buttons pressed? Is it Input.GetAxis("Horizontal") by any chance?
Yeah, the code for button detection is Input.GetAxis("Horizontal") and Input.GetAxis("Vertical")
I only get this issue when working with Unity and when I play Unity games on the web.
Thank you so much for that answer, I didn't realize that there were more than one "Horizontal" and "Vertical" axis', removing the second ones fixed the issue. I'm still not sure what causes the issue though because there are no joysticks installed on my PC, maybe it's a driver causing an issue. I'll post the answer for anyone else with this issue.
Answer by Shmulzious · May 14, 2014 at 09:23 PM
The you might need to readjust the Axes on Edit->Project Settings-> Input to be more accurate - especially if you have controller connected since by default there are two "Horizontal" and "Vertical" Axes defined - and the controller one is known to be too sensitive out of the box. Read here about the parameters and how to adjust them -
Answer by L4w3s · May 15, 2014 at 12:52 AM
As Shmulzious suggested, there may be more than one "Horizontal" and "Vertical" axis so this may be causing the issue for others. You can either raise the sensitivity or remove the additional axis.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
How to turn your object left and right 1 Answer
ScrollView: scroll bar on left side instead of right? 1 Answer
GUI text disapearing randomly. 0 Answers
gameObject moves twice? 0 Answers