[Input] Manipulation update breaks if focus is lost
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.
Adding the current object you're trying to manipulate to the global listeners should fix the issue.
Or you could use InputManager.Instance.PushModalInputHandler.
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.
Good call about clearing the stack.