Hello,
In one script for Gear VR I am detecting tap (touch the touchpad) and swipe (swipe on Gear VR touchpad):
Tap - fire weapon (MouseDown)
Swipe - change weapon.
When camera don’t rotate (player don’t look around), everything is OK.
But when player touch the touchpad - Fire (HandleDown), then rotate head and then release touch (HandleUp), script detects it as a swipe.
Similar as MouseDown → movement with mouse (look) → MouseUp.
Could you help me, how to prevent from detecting swipe, when ouy do: HandleDown → rotate camera (look around) → HandleUp
EDIT:
Currently I have solution, that I am checking angle between HandleDown - HandleUp < threshold, But there has to be more intuitive and simple solution.
Thank you.