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.

Device Portal / Virtual Input as Hololens trigger

aexaex
edited February 2018 in Questions And Answers

Hello,

I'd like to use the Device Portal - Virtual Input to send keyboard triggers to a Hololens demo.

I tried using

   if (Input.GetKeyDown("f"))
    {
    // doSomething
    }

in my Unity c# script.

It works when I use the Holographic Remoting on a computer (I press "F" and something happens)
But it doesn't work when my app is deployed on the hololens, and when I press F using the Virtual Input of the Device Portal.

However, I can use that Virtual Input on other Hololens apps (e.g. Microsoft Edge), so I can say the Device Portal is working normally.

Am I supposed to activate something in my Unity project to receive keyboard infos from the device portal?

The Player/Capabilities activated in my app are :
InternetClient
PicturesLibrary
VideosLibrary
Webcam
Microphone
HID
SpatialPerception

Thank you,

Sign In or Register to comment.