- Home /
Question by
Srihari9422 · Mar 14, 2018 at 07:12 AM ·
mobiletouchcontrols
Cross platform input manager should return integers
I am not going to show any script, but I noticed that when I used the cross platform input manager for touch buttons, the raw axis values returned are in small fractions(like 0.4321,0.1123) sometimes even smaller values, like 1.2322e-10. I want the value to be 1(when keypressed) and 0(when keyreleased). Where am I going wrong, what should I do then?
Comment
Your answer
Follow this Question
Related Questions
Touch controls 0 Answers
Using Input.GetAxis variable for Touch Controls 1 Answer
Porting to Mobile (Touch Controls) 2 Answers
when i drag my finger on mobile screen gameobject move left or right but not follow my finger 1 Answer
Swipe controls error "Cannot implicitly convert type 'UnityEngine.Touch' to 'Touch' " 1 Answer