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.
Xbox One controller button mapping
Hello,
I've been trying to get my Xbox One (Xbox One S) controller to work on the HoloLens with Unity. At the moment I've been able to successfully map the A and Right bumper buttons and they get recognized on the HoloLens, I haven't had any luck with the rest of the buttons, D-Pad or sticks.
I'm running an older version of Unity (5.5.0f3) because we started developing with that one and I don't want to break anything in the middle of my development by upgrading, however, if the controller support has been fixed in the newest version of Unity I'll try to upgrade. Before I go through that path I wan't to make sure that the problem has been solved in Unity or maybe someone has some experience with the key bindings and can share what works.
Also, I tried using the Unity package that someone built for the controller support, but it didn't work with the setup that I have in my current scene.
Thanks in advance.
Comments
I have not personally used this but a friend of mine has and said it worked great. Maybe it will help you.
https://www.assetstore.unity3d.com/en/#!/content/70068
Our Holographic world is here
RoadToHolo.com WikiHolo.net @jbienz
I work in Developer Experiences at Microsoft. My posts are based on my own experience and don't represent Microsoft or HoloLens.
I tried that, it kind of worked for me, but I prefer not to use an extra layer of dlls to my app. I already figured it out though. The only buttons that are not working for me at the moment are the D-Pad, right analog stick and triggers, the rest are working fine. I know what the problem with the D-Pad/Triggers is, but I'm moving on with what I have.
If someone wants to give it a shot, the D-Pad is recognized as axis-10 for left/right and axis-9 for up/down, these axis are meant to be used for the triggers inside of Unity and their range is 0 to 1, so if your code is set for a -1 to 1 range, you will get errors. You also might be able to use axis 3 for the D-Pad, but I haven't tested that.
There is an articlePart 11: Using an Xbox One Controller with Unity on Windows 10 which may help as this maps the D Pad
Here's a branch of the HTK with my joystick implementation. It's not finished but it's a good start. All the inputs are mapped in the InputManager already.
https://github.com/StephenHodgson/HoloToolkit-Unity/tree/HTK-JoystickInput
Microsoft HoloLens Agency Readiness Program Partner
Developer, Immersive Experiences at Valorem | LinkedIn Profile
Moderator for Microsoft's open source HoloToolkit for Unity
Thanks, but those button mappings will work inside of unity or in a PC environment but not on the HoloLens.
I'll take a look at those. Thanks!