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

Xbox One S controller - right stick doesn't work in HL

Hello,

I'm experimenting with using the Xbox One S controller with HoloLens. The left stick and the triggers work like a charm, but I can't get the right stick working. Using Unity, I have configured the Input Manager so that the right analog stick works in the Unity player - however, when deployed to the HoloLens device, it seems like I can't get any input.

The relevant code (go is the GameObject I am trying to move and rotate with the controller):

            //Move
            var x = Input.GetAxis(XAxisName) * XAxisMultiplier;
            go.transform.RotateAround(cameraTransform.position, cameraTransform.up, x);

            var y = Input.GetAxis(YAxisName) * YAxisMultiplier;
            go.transform.RotateAround(cameraTransform.position, cameraTransform.right, y);

            var z = Input.GetAxis(ZAxisName) * ZAxisMultiplier;
            go.transform.position += cameraTransform.forward * z * -0.03f;

            var stickInFrontOfMe = Input.GetButton(StickInFrontOfMeButtonName);
            if (stickInFrontOfMe)
                go.transform.position = cameraTransform.position + cameraTransform.forward * StickInFrontOfMeDistance;

            //Rotate
            var rz = Input.GetAxis(RotateAroundZAxisName)*RotateAroundZAxisSpeed;
            go.transform.Rotate(cameraTransform.forward, rz);

            var ry = Input.GetAxis(RotateAroundYAxisName)*RotateAroundYAxisSpeed;
            go.transform.Rotate(cameraTransform.up, ry);

The Move works as it should, the Rotate does not. Again, the Input Manager is configured properly, using the 4th and 5th axis of the joystick and it works in the Unity player.

Is this a HoloLens bug or am I doing something wrong?
Thanks,
András

Tagged:

Best Answer

Answers

Sign In or Register to comment.