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

Mixed Reality Controllers Dev

Hi Folks,

I'm having a hard time developing with MR controllers in Unity. I'm trying to simply poll and then perform tasks based on controller input. I've tried using Unity's Input Manager (nothing happens) and the windows API. With the API even

if (interactionSourceState.selectPressed) {
// ...
}

as outlined in the docs doesnt work

Any guidance would be appreciated

Answers

  • Options

    We have tested your code, and motion controllers’ states can be detected correctly with Win API.
    Our environment:
    OS build: 16299.98
    Unity Version: Unity 2017.2.0p2-MRTP5 (64-bit)

    Please update your environment to latest version if possible, perhaps this has been fixed in the latest release.
    If the problem cannot be fixed, you can also share your environment with us. It really helps for us to follow up your question.

Sign In or Register to comment.