Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

How do I detect no gesture

I am using gestureRecognizer to detect a gesture through startcapturingGestures() method. How do I detect when no gestures were recognized? For example if I am manipulating an object and my hand goes out of the view of the hololens.

Tagged:

Answers

  • Options

    Hi @lxd20,
    For the air tap gesture, you will get a SourceLost event when the hand leaves the FOV. When using manipulation, you will get a ManipulationCanceled event when the hand is lost. You can respond to these events if you want to do something special when a gesture is not completed.

  • Options

    yeah I tried it, its just that sometimes when the hand is obviously out of range, the hololens doesn't detect that. The manipulation gesture I implemented allows me to pinch and hold to move an object around, and to let go of the object just release the pinch (using manipulation started, manipulation updated). However when I pinch and hold the object and move my hand out of range and release my pinch, the hololens doesn't detect it, and the object still follows my hand motion even though I let go of the pinch.

  • Options

    The HoloLens has no idea you released your pinch if you did it when your hand is out of range. When you bring your hand back into range (with pinch released) the HoloLens is effectively seeing a new hand. When you app gets the SourceLost event, it is up to your app to respond to that event by cancelling whatever manipulation event was in progress.

Sign In or Register to comment.