mini_arcade_core.runtime.input.input_port¶
Service interfaces for runtime components.
Classes¶
Interface for input handling operations. |
Module Contents¶
- class mini_arcade_core.runtime.input.input_port.InputPort¶
Interface for input handling operations.
- build(events: list[mini_arcade_core.backend.events.Event], frame_index: int, dt: float) mini_arcade_core.runtime.input_frame.InputFrame¶
Build an InputFrame from the given events.
- Parameters:
events (list[Event]) – List of input events.
frame_index (int) – Current frame index.
dt (float) – Delta time since last frame.
- Returns:
Constructed InputFrame.
- Return type: