You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PassThroughInputManager.Update() it syncs the state from the parenting input manager.
For mouse input, only released buttons are handled.
For keyboard input, pressed and released buttons are handled.
This has the effect that if a Drawable handles KeyDown() at a higher point in the hierarchy, the button press will also be handled by every PassThroughInputManager in the draw hierarchy when they sync.
I have a couple of questions.
Lets say we have the scene graph.
Do I understand correctly that PassThroughInputManager should sync input state changes related to Container B and Container C(including their children)?
Do I understand correctly that PassThroughInputManager should ignore input state changes out of its scope? For example, input state changes related to Container A.
Do I understand correctly that the relationship between PassThroughInputManager and parent InputManager is many to one? I mean, we can have multiple PassThroughInputManager which will sync with one parent InputManager.
In
PassThroughInputManager.Update()
it syncs the state from the parenting input manager.For mouse input, only released buttons are handled.
For keyboard input, pressed and released buttons are handled.
This has the effect that if a
Drawable
handlesKeyDown()
at a higher point in the hierarchy, the button press will also be handled by everyPassThroughInputManager
in the draw hierarchy when they sync.Test case:
The text was updated successfully, but these errors were encountered: