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

InputManager OnFocusEnter, OnFocusExit Events Reversed

Open tshadle opened this issue 9 years ago • 3 comments

In InputManager.cs, lines 355 and 364 reverse references to OnFocusExitEventHandler and OnFocusEnterEventHadler. As a result OnFocusEnter and OnFocusExit fire in the wrong order.

Also, OnFocusEnterEventHadler contains a typo.

To test, run ColorPickerExample. It's currently broken. Reverse the refs in InputManager.cs to fix.

Thanks.

tshadle avatar Dec 03 '16 13:12 tshadle

Yeah, I am seeing the same thing. Put in some debug log statements on onFocusEnter and Exit, and they are firing opposite

jessemcculloch avatar Dec 05 '16 05:12 jessemcculloch

I checked the code and they really are reversed: https://github.com/Microsoft/HoloToolkit-Unity/blob/63dabf4826332a82ff369569a7f1d7435b9ebb48/Assets/HoloToolkit/Input/Scripts/InputManager.cs#L353-L369

aalmada avatar Dec 05 '16 10:12 aalmada

Sorry guys, I think that may have been my fault. I'll fix that right meow.

StephenHodgson avatar Dec 05 '16 13:12 StephenHodgson