Mixedrealitytoolkit-unity: XBox Controller "A" not responding with latest MRTK

Created on 24 Oct 2017  Â·  19Comments  Â·  Source: microsoft/MixedRealityToolkit-Unity

Create a new Unity project, import MRTK, configure for immersive head sets, add default scene settings. Enable Xbox Controller Support. Start project in Unity, observe how nothing happens when you press "A". The cursor should at least react in some way

All 19 comments

I don't think the default input system is setup with the XboxControllerInputSource yet.

I added a XboxControllerInputSource as in your video. No effect. I wish to stress that this used to work until pretty recently. If you can tell me what changed... maybe I can help.

Oh and by the way... all _other_ functions of the Xbox Controller (teleport, move, rotate) work fine. It's just that darn button

Interestingly - if you add a XboxControllerInputSource it gets disabled at startup....

I think this was actually because of a change to the prefab itself.

Try adding the GamePadInput script back to the MotionControllers object on the MR Camera prefab.

It's deprecated and it was meant to be replaced by the the XboxControllerInputSource.

It does not seem to have much effect. Do I need to change settings on GamePadInput?

Edit/Project Settings/ Input

Although if it's Fire1 that's being referenced in your code, you may want to replace it with whatever the current mapping for your A button is

Yeah, found it. That seems to be working, I think this needs to be fixed ;)

It's actually easier to set the Gamepad button to XBOX_A. Goodness gracious, you know how much time this took me?

That's exactly what I was going to suggest

But are we agreed this is actually a bug?

Yes. I need to update the usages of the Xbox Controller on the MixedRealityCameraPrefab.

I'll do that today.

@LocalJoost is there a specific test scene I should use to test this when fixing?

I am not aware of one.

Joost van Schaik

Windows Development MVP
Sent from mail for Windows 10

"The world as I envision it in my head is such a more interesting place"

From: Stephen Hodgsonnotifications@github.com
Sent: Tuesday, October 24, 2017 22:40
To: Microsoft/MixedRealityToolkit-UnityMixedRealityToolkit-Unity@noreply.github.com
Cc: Joost van Schaikjoostvanschaik@outlook.com; Mentionmention@noreply.github.com
Subject: Re: [Microsoft/MixedRealityToolkit-Unity] XBox Controller "A" not responding with latest MRTK (#1229)

@LocalJoosthttps://github.com/localjoost is there a specific test scene I should use to test this?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1229#issuecomment-339124235, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD8Bn-xZY3i23shllCcZBKBmlowOqnEQks5svktRgaJpZM4QE9i0.

So what was the bug in this? It sounds like the issue is GamepadInput.cs having stale axis names, correct?

@StephenHodgson I don't see any Fire1/XBOX_A references on the MixedRealityCamera prefabs. Which updates are you referring to? Also, you say that GamepadInput.cs is deprecated. What else implements its functionality of routing taps/holds/navigation through the InputManager from an Xbox controller?

That's a good point kev

So I gather this is fixed now? No need to workaround anymore with pulling back in that deprecated class you advised me?

Joost van Schaik

Windows Development MVP
Sent from mail for Windows 10 on my Surface Pro 4

"The world as I envision it in my head is such a more interesting place"


From: Stephen Hodgson notifications@github.com
Sent: Thursday, November 2, 2017 10:23:18 PM
To: Microsoft/MixedRealityToolkit-Unity
Cc: Joost van Schaik; Mention
Subject: Re: [Microsoft/MixedRealityToolkit-Unity] XBox Controller "A" not responding with latest MRTK (#1229)

Closed #1229https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1229 via #1269https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/1269.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1229#event-1323940715, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD8Bn7eWnUJKEGHKWXIPi339w2QIhFK0ks5syjLGgaJpZM4QE9i0.

Should be. All I did was update the string references on GamePadInput

Was this page helpful?
0 / 5 - 0 ratings