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

Add Gesture control in Hololens App

Hello,
I developp an app who work with QRCode.
First the app works with Voice -> 'go' to begin scan and 'end' to stop and reset the scan.
But i don't develop gaze and gestiture management, i would like to airtap for begin the scan, and other gesture to finish or reset the scan ...
The code is here ==>https://github.com/sancho0410/QRCodeReader
I use ZXing custom library from Mike Taulty (https://mtaulty.com/2016/12/28/windows-10-uwp-qr-code-scanning-with-zxing-and-hololens/)

Every One have some idea for add gesture control to my app ?

Thanks ;)

PS : Sorry for my bad english

Comments

  • Options

    In your engine.cs, I think you want something like:

     bool scanning = false;
        void Start()
        {
            SpatialInteractionManager.GetForCurrentView().SourcePressed += ((sender, args) => 
            { if (scanning)
                {
                    OnEndScan(); // or whatever you want the end the scan tap to do...
                    scanning = false;
                }
                else
                {
                    OnScan();
                    scanning = true;
                }
            });
    }
    

    ===
    This post provided as-is with no warranties and confers no rights. Using information provided is done at own risk.

    (Daddy, what does 'now formatting drive C:' mean?)

  • Options

    Hi,
    Thanks to your comment, i try to using your solution but VS doesn't know "SpatialInteractionManager" (empty script or classe in the HolotoolKit with this name !) in the Unity VS editor (in VS without Unity, no problem)
    Have you an idea with use InteractionManager, GazeManager etc.

    Thanks a lot !

  • Options

    I think i find a solution !
    I use this code :
    recognizer = new GestureRecognizer();
    recognizer.TappedEvent += (source, tapCount, ray) =>{/Code to launch with airtap/};

    And it's works !
    I also add Holotoolkit InputManager into my scene and use interface IInputClickHandler but nothing ...

    Thanks =)

Sign In or Register to comment.