MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

[Input] Manipulation update breaks if focus is lost

Open StephenHodgson opened this issue 9 years ago • 3 comments

When implementing manipulations I found that when the focused object being manipulated is lost by the gaze manager, the InputManager does not raise events for manipulation correctly.

[Update] Tested this out on device. Broken there too.

StephenHodgson avatar Jun 02 '17 21:06 StephenHodgson

Adding the current object you're trying to manipulate to the global listeners should fix the issue. Or you could use InputManager.Instance.PushModalInputHandler.

StephenHodgson avatar Jun 02 '17 22:06 StephenHodgson

I normally clear the input stack, push my inputHandler, then clear the input stack on los or release.

InputManager.Instance.ClearModalInputStack(); InputManager.Instance.PushModalInputHandler(gameObject);

The push and pop is scary. Adding to the global listeners is probably the better way to go though.

killerantz avatar Jun 05 '17 15:06 killerantz

Good call about clearing the stack.

StephenHodgson avatar Jun 05 '17 15:06 StephenHodgson