MenuNavigationSystem Class
Handles gamepad input for menu navigation. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Processes menu navigation input. More... | |
Private Member Functions Index
| void | updateMenu (helios::engine::runtime::world::UpdateContext &updateContext, MenuComponent *mc, const size_t index) |
|
Updates menu selection state. More... | |
Description
Handles gamepad input for menu navigation.
Processes Up/Down input to change selection and A button to activate the selected menu item. Updates UiStateComponent selection state and issues UiActionCommand on activation.
## Input Handling
- **Up/Down**: Navigate through menu items
- **A Button**: Activate selected item (triggers UiActionCommand)
- See Also
- See Also
- See Also
UiActionCommand
Definition at line 68 of file MenuNavigationSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 114 of file MenuNavigationSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Processes menu navigation input.
Finds the currently focused menu item, handles Up/Down navigation, and triggers UiActionCommand when the A button is pressed on an item with a UiActionComponent.
- Parameters
-
updateContext The current frame's update context.
Definition at line 126 of file MenuNavigationSystem.ixx.
References helios::input::types::A, helios::input::types::Down, helios::engine::runtime::world::UpdateContext::find, helios::input::InputSnapshot::gamepadState, helios::engine::runtime::world::UpdateContext::inputSnapshot, helios::engine::modules::ui::widgets::components::MenuComponent::menuItems, helios::engine::runtime::world::UpdateContext::queueCommand, helios::engine::modules::ui::widgets::components::MenuComponent::selectedIndex, helios::input::types::Up and helios::engine::runtime::world::UpdateContext::view.
Private Member Functions
updateMenu()
| inline |
Updates menu selection state.
Moves focus to the new index, updates UiStateComponent selection flags, and clears the dirty flag.
- Parameters
-
updateContext The current frame's update context.
mc The menu component to update.
index The new selected index.
gamepadState The current gamepad state.
Definition at line 82 of file MenuNavigationSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.