simvx.core.ui_input¶
UIInputManager — Handles UI input routing, focus, popups, and hit-testing.
Extracted from SceneTree to separate game-logic concerns (process/draw/groups) from UI input routing (mouse events, keyboard focus, popups, hover tracking).
Module Contents¶
Classes¶
Routes UI input events to controls — focus, hover, mouse grab, popups. |
API¶
- class simvx.core.ui_input.UIInputManager¶
Routes UI input events to controls — focus, hover, mouse grab, popups.
Initialization
- reset()¶
Reset transient state (called on scene change).
- push_popup(control)¶
Register a control as an active popup (drawn on top, receives input first).
- pop_popup(control)¶
Unregister a popup control.
- ui_input(root: simvx.core.node.Node | None, mouse_pos=None, button: int = 0, pressed: bool = True, key: str = '', char: str = '')¶
Route UI input events to controls.