mini_arcade_native_backend.ports.input ====================================== .. py:module:: mini_arcade_native_backend.ports.input .. autoapi-nested-parse:: Input port implementation for the native backend. Provides functionality to poll and map input events. Classes ------- .. autoapisummary:: mini_arcade_native_backend.ports.input.InputPort Module Contents --------------- .. py:class:: 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. :param native_backend: The native backend instance. :type native_backend: native.Backend :param mapper: The event mapper to convert native events to core events. :type mapper: NativeEventMapper .. py:method:: poll() -> list[mini_arcade_core.backend.events.Event] Poll for input events and map them to core events. :return: A list of core events. :rtype: list[Event]