Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. 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.