Continuous finger movements

Hi guys,

I have been trying to get a finger gesture script working where the user swipes continually left and right or up and down and it keeps registering.

I have managed to get it working with registering normal finger swipes however the user has to lift the finger off the device to register the input.

If there anyway for there to be continuous finger gestures being registered? Any help would be appreciated.

How many fingers are we talking about?

If it’s just one, then you can simply use Input.mousePosition and Input.GetMouseButtonDown (which makes it convenient to test within Unity).

Hi Thanks for the reply, apologies for only just getting back to you now. That’s a great solution, however I am running in to a little issue. I have the left, right, up and down working however I have to lift my finger off the mouse before I am able to register another swipe.

Is there any way to register multiple left and right swipes without having to reset using the Input.GetMouseButtonUp function?

Well sure — it’s all in what you define as a “swipe.”

I’m starting to gather that you’re using somebody else’s gesture-recognition code, and don’t really understand how it works?