mini_arcade_pygame_backend.ports.input¶
Input port implementation for the pygame backend. Provides functionality to poll and map input events.
Attributes¶
Classes¶
Input port for the Mini Arcade pygame backend. |
Module Contents¶
- mini_arcade_pygame_backend.ports.input.PYGAME_KEY_TO_KEY: dict[int, mini_arcade_core.backend.keys.Key]¶
- class mini_arcade_pygame_backend.ports.input.InputPort¶
Input port for the Mini Arcade pygame backend.
- poll() list[mini_arcade_core.backend.events.Event]¶
Poll for input events and map them to core events.
- Returns:
A list of core events.
- Return type:
list[Event]