Interactable not receiving input from Grip Press or Menu Button on an MR Controller
When testing a controller grip button or the menu button, it does not trigger any state or events on the Interactable. Sometimes I use an Interactable with IsGlobal set to true, then set the Mixed Reality Input Action to Menu, so the menu button on the controller will trigger an action.
- Place an Interactable on a gameObject.
- Add a collider
- Set the Input Action drop down to Menu or Grip Press.
- Test in Unity with a MR Headset
- Press the menu button


Intended Behavior
MR Controller buttons other than the trigger (select) can send input into and Interactable.
Your Setup (please complete the following information)
- Unity Version [2018.3.9f1]
- MRTK Version [v2.0]
Target Platform (please complete the following information)
- WMR immersive
Additional context
@julenka did a test with the Xbox Controller, it worked mapping buttons from the Xbox controller to an custom action, there may be an issue with existing actions?
@julenka what's the impact of this issue?
So far I think it is just impacting Todd, since most people use interactable for just the select button. I also think it could just be that Todd is not configuring the interactable in a way that matches the way I would do it, since it was working for me when I checked it in. So I would say it is impacting one person but it’s possible that he is just configuring it incorrectly.
Sent from phone, please excuse typos.
From: Will [email protected] Sent: Tuesday, May 21, 2019 10:20:07 AM To: microsoft/MixedRealityToolkit-Unity Cc: Julia Schwarz; Mention Subject: Re: [microsoft/MixedRealityToolkit-Unity] Interactable not receiving input from Grip Press or Menu Button on an MR Controller (#4492)
@julenkahttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjulenka&data=02%7C01%7Cjschwarz%40microsoft.com%7C8493cc9bd64845df099a08d6de109220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636940560087063618&sdata=k%2FnyQ8oiyXUh11rzn2793EFbYsG2XBnJgT4Xwkswbpw%3D&reserved=0 what's the impact of this issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMixedRealityToolkit-Unity%2Fissues%2F4492%3Femail_source%3Dnotifications%26email_token%3DAABJELE3O4U6U6YIQYUVNUDPWQVMPA5CNFSM4HOGPHD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4S77Q%23issuecomment-494481406&data=02%7C01%7Cjschwarz%40microsoft.com%7C8493cc9bd64845df099a08d6de109220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636940560087073575&sdata=ThnVtQcvL8hggy%2B8%2BbRMlsO4eZE87aMm2FxX9L5bgBk%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAABJELAVYBRGOW7RZM6I34DPWQVMPANCNFSM4HOGPHDQ&data=02%7C01%7Cjschwarz%40microsoft.com%7C8493cc9bd64845df099a08d6de109220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636940560087073575&sdata=28jkVnr0fIXq8wQmRFN%2BYLtDeYU75y7KVNidsKvoOA0%3D&reserved=0.
I tracked it down to this method in BaseControllerPointer.
public override void OnInputDown(InputEventData eventData)
{
base.OnInputDown(eventData);
if (eventData.SourceId == InputSourceParent.SourceId)
{
if (requiresHoldAction && eventData.MixedRealityInputAction == activeHoldAction)
{
IsHoldPressed = true;
}
if (eventData.MixedRealityInputAction == pointerAction)
{
IsSelectPressed = true;
HasSelectPressedOnce = true;
if (IsInteractionEnabled)
{
InputSystem.RaisePointerDown(this, pointerAction, Handedness);
}
}
}
}
The check for (eventData.MixedRealityInputAction == pointerAction) is false so the Menu button will not raise any pointer events.
| Called on | Action Description | Axis Constraint |
|---|---|---|
| Right_DefaultControllerPointer(Clone) | Select | Digital |
| Right_ParabolicPointer(Clone) | Trigger | SingleAxis |
| Menu Action Button | Menu | Digital |
I don't know much about this or if there is something I should be setting up or registering?
Oh, okay I understand the bug now. Let me think about it. Thanks for digging into this!
Understanding Todd's comment a bit better, this means that it's not possible to listen to any interactions other than 'select' currently, which I do think could impact a large number of customers (anybody listening to an action that is not select), and is a regression. Adding Urgency-Soon tag and taking a look.
I figured out why this was working for the gamepad and not for motion controllers. Here's the code for GGVPointer, which is what the gamepad uses:
public void OnInputDown(InputEventData eventData)
{
for (int i = 0; i < eventData.InputSource.Pointers.Length; i++)
{
if (eventData.InputSource.Pointers[i].PointerId == GazePointer.PointerId)
{
gazePointer.RaisePointerDown(eventData.MixedRealityInputAction, eventData.Handedness, eventData.InputSource);
return;
}
}
}
They are not filtering based on the pointerAction: if (eventData.MixedRealityInputAction == pointerAction)
Fixed by #4673