mini_arcade_native_backend.ports.input¶
Input port implementation for the native backend. Provides functionality to poll and map input events.
Classes¶
Input port for the Mini Arcade native backend. |
Module Contents¶
- class mini_arcade_native_backend.ports.input.InputPort(native_backend: mini_arcade_native_backend._native.Backend, mapper: mini_arcade_native_backend.mapping.events.NativeEventMapper)¶
Input port for the Mini Arcade native backend.
- Parameters:
native_backend (native.Backend) – The native backend instance.
mapper (NativeEventMapper) – The event mapper to convert native events to core events.
- 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]