- Home /
Is there a way to optimize Input.GetAxis on windows phone?
I'm doing an object control whereby users simply drag or swipe to rotate an object on screen. I am currently using the value of Input.GetAxis("Mouse Y") to rotate the object based. However, it seems like the value keeps returning into 0 way much faster than the other devices I have tested. As a result, when I swipe or drag on a windows phone, the object's rotation becomes jerky.
Does anyone have this same problem? Should I use different method to simulate drag and swipe movement on windows phone?
I have tested using 3 desktops, 2 laptops, 2 iPads, an iPhone and 5 android devices and none of them had this problem.
Such occurrence happened on Nokia Lumia 620 and 920, although it doesn't happen too often on 920.
Or could it simply be a bug?
Answer by FrankStarsKo · Sep 11, 2013 at 06:21 AM
for handheld devices you have to use fingers, not GetAxis of keyboards or mouses. yes you can use it anyways, but performance is decreased (that's probably more noticeable on these nokia devices).
change your code to "touch" or buy a custom asset on the assetstore.
hope that helps
Thanks for the input, Frank. I remembered using Input.Touch but it had its own problem. Guess I'll have to experiment a little bit more then.
Your answer
Follow this Question
Related Questions
Swipe and Hit Object in Direction 1 Answer
Unity2D iOS Dragable items by touch 0 Answers
Different swipe speeds on different resolutions 1 Answer
iPhone - How to calculate a decent touch swipe speed? 2 Answers
Do On swipe finger? 1 Answer