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.

Detecting Air Tap Down and Up

Is it possible to separately detect the finger close and open gestures (air tap "down" and "up") with Unity for the Hololens, without using MRTK (it introduces too many portability issues in this project, unfortunately)?

I can detect just a tap (basically just the "up" event) with the UnityEngine.XR.WSA.Input.GestureRecognizer no problem:

public class TapTest : MonoBehaviour {

    private GestureRecognizer gr;

    private void Start () {
        gr = new GestureRecognizer();
        gr.Tapped += OnTap;

    private void OnTap (TappedEventArgs args) {
        print($"OnTap {args.source.kind}");


That prints the expected messages on an air tap.

But I'm not really sure how to detect the initial "down" part of the gesture (the pinch), if it's even possible.

I found this page and thought maybe from there that Hold or Manipulation start events would be triggered at the initial pinch gesture, but I added similar handlers for those gestures and found that neither are triggered until HoldStartDuration is reached, which I guess makes sense in retrospect.

I'm also looking through the MRTK source but I'm getting confused by all the layers of abstraction and having a lot of trouble tracing through it, so I wasn't really able to find what I was looking for.

Sign In or Register to comment.