Question by
martinvali12 · Dec 26, 2017 at 07:11 PM ·
c#inputjoystick
Joystick input recognized multiple times
Hello! I am currently making a car game but im having problems with shifting gears. If i will press a button on my steering wheel then for example if im in the first gear then it should go into second gear but whenever i press the button it goes to seventh or sixth gear not the second. Unity thinks, that i pressed the button multiple times. ``void Update () { if (Input.GetAxisRaw ("gearup") != 0) { curgear += 1; } }
Comment