mini_arcade_core.scenes.systems.builtins.capture_hotkeys

Reusable capture/replay hotkey system using action-map bindings.

Classes

CaptureContext

Structural context for capture hotkey systems.

CaptureHotkeysConfig

Per-scene capture workflow configuration.

CaptureHotkeysSystem

Handles screenshot/replay/video commands in a reusable way.

Module Contents

class mini_arcade_core.scenes.systems.builtins.capture_hotkeys.CaptureContext

Bases: Protocol

Structural context for capture hotkey systems.

input_frame: object
commands: object
class mini_arcade_core.scenes.systems.builtins.capture_hotkeys.CaptureHotkeysConfig

Per-scene capture workflow configuration.

screenshot_label: str | None = None
replay_file: str | None = None
replay_game_id: str = 'mini-arcade'
replay_initial_scene: str = 'unknown'
replay_fps: int = 60
action_toggle_video: str = 'capture_toggle_video'
action_toggle_replay_record: str = 'capture_toggle_replay_record'
action_toggle_replay_play: str = 'capture_toggle_replay_play'
action_screenshot: str = 'capture_screenshot'
class mini_arcade_core.scenes.systems.builtins.capture_hotkeys.CaptureHotkeysSystem

Bases: mini_arcade_core.scenes.systems.base_system.BaseSystem[CaptureContext]

Handles screenshot/replay/video commands in a reusable way.

services: mini_arcade_core.runtime.services.RuntimeServices
action_map: mini_arcade_core.scenes.systems.builtins.actions.ActionMap
cfg: CaptureHotkeysConfig
name: str = 'capture_hotkeys'
order: int = 13
step(ctx: CaptureContext) None

Perform a single step of the system within the given context.

Parameters:

ctx (TSystemContext) – The system context.