mini_arcade_core.engine.loop.hooks ================================== .. py:module:: mini_arcade_core.engine.loop.hooks .. autoapi-nested-parse:: Game core module defining the Game class and configuration. Classes ------- .. autoapisummary:: mini_arcade_core.engine.loop.hooks.LoopHooks mini_arcade_core.engine.loop.hooks.DefaultGameHooks Module Contents --------------- .. py:class:: LoopHooks Bases: :py:obj:`Protocol` Protocol for custom loop hooks to handle events. .. py:method:: on_events(events: Iterable[object]) Docstring for on_events :param events: Iterable of input events. :type events: Iterable[object] .. py:class:: DefaultGameHooks(game: mini_arcade_core.engine.game.Game, effects_stack: mini_arcade_core.engine.render.effects.base.EffectStack) Default implementation of LoopHooks for handling common events. :param game: The Game instance. :type game: Game :param effects_stack: The EffectStack for post-processing effects. :type effects_stack: EffectStack .. py:attribute:: game .. py:attribute:: effects_stack .. py:method:: on_events(events: Iterable[mini_arcade_core.backend.events.Event]) Handle common events such as window resize and debug toggles. :param events: Iterable of input events. :type events: Iterable[Event]