Language is Java
thank you for your fast reply tylerz. Unfortunatelly i dont understand your solution that well...
I think the best way to solve this is to explain my problem more in detail in an example:
Goal: Detect the ThumbUp Gesture
Requirement:
1. Thumb.isExtended() = true ,
2. hand.grabStrength() > fistThreshold,
// fistTreshold 0.9 so its quite sure to be a fist.
3. Thumb.direction().getY() > angleThreshold
// angleThreshold = 0.8 which means the thumb is point very much along the Y axis
Problem:
how long is this gesture happening? when do i perform something if this gesture happens?
-> .state() methode usefull to check for start update and end
Idee:
creat a class ThumbUp extends Gesture
which has for example the state() methode.
Question:
How do i in general build this class?! ( i am low experienced in programming )
Right now echt frame in the onFrame() method of the Listener has a GestureList.
this list ist able to access older frames and knows if a gesture is ongoing or not.