First of all, thanks for the quick replies.
First things first, the two properties ner0sum mentioned:
controller.Config.SetFloat("Gesture.Swipe.MinLength", 400);
controller.Config.SetFloat("Gesture.Swipe.MinVelocity", 2000);
Is this the right way to set them? I'll play around with the values when I have everything else done.
I'm thinking whether I should restrict the recognition to only a hand or not. I'm also not sure if the thumb finger is actually used when doing a swipe movement, hence comparing to >= 4.
Frame frame = controller.Frame();
if (frame.Hands.Count == 1)
{
// Get the hand
Hand hand = frame.Hands[0];
// Check if the hand has any fingers
FingerList fingers = hand.Fingers;
if (fingers.Count >= 4)
{
SafeWriteLine("recognized");
// Go through all the recognized gestures and check if all of them are TYPESWIPE?
}
}
As described in the comment inside the last branch, should I go through all the recognized gestures and check if all of them are TYPESWIPE?
One last thing about the gestures, should I check their status? (start, updated, stopped)
I'll also use your suggestions to verify swipe's direction. Thank you very much
Sincerely,
Apidcloud