I need a touch listener that behaves like so:
-
When touching the screen and not moving, a variable is set to “on”. DONE.
-
When not touching the screen, that variable is set to “off”. DONE
-
if the player moves their finger, that variable is set to “moving”. It stays as “moving” until the player is no longer moving their finger around the screen OR a timer reaches its end(havent decided yet), at which point the variable will return to “on” until/unless the player ends the touch.
The problem is that the moved phase will stay the active phase until the touch is ended, even if the player is no longer moving their finger. is there a way to revert it to the “on” phase if certain conditions are met?
I wont be at my computer for a few hours but i wanted to get the question out because it would be nice to get home and implement it immediately, or at least have a starting point since my current attempts have been met with crazy bugs. 
Thanks for any answers. Hope this was clear.