Skip to main content

Crate repame_shell

Crate repame_shell 

Source
Expand description

App wiring: Repose platform runners plus sim and gamepad helpers.

Structs§

Camera2d
2D orthographic camera. Owned by the UI (signals), copied into the snapshot per frame. effective_center is center + offset. Canvas, GPU batch, and picks derive from these fields together.
FrameInput
Everything the viewport draws this frame. Plain snapshot data.
GamepadId
Opaque gamepad handle. Backend-local index, stable for the connection lifetime. Survives across frames; invalid after GamepadEvent::Disconnected.
GamepadPoller
Gamepad polling on the shared platform backend. Events feed ReposeRuntime::handle_gamepad (UI nav) and rt.gamepads (gameplay).
PadBank
PadBridge
ShortcutEdges
Sim
Fixed-step sim state. Game registers systems, feeds wall time with step, reads world for the snapshot.
SimTime
Sim time, advanced once per fixed step.
SpriteInstance
One batched sprite. uv is in atlas texels normalized to 0..1.
Staging

Enums§

GamepadEvent
PickEvent
UI-facing pointer events from the viewport. Click fires on pointer up when the press started inside and the pointer stayed within slop. Press is the down-edge.

Constants§

TRIGGER_HELD

Traits§

ShellHooks
Per-frame hooks the game implements.

Functions§

apply_scheduler_levels
drain_cues
game_shortcut_map
install_handler_into
Install only the action handler into long-lived edges. The map itself is process-global (install_map, called alongside); pushing a scoped map per frame would leak a scope entry per frame and re-root resolve_action ordering.
install_into
install_map
Overwrite the process-global default shortcut map (idempotent: same bindings every call, safe per frame and across test threads).
load_json
run_desktop
Desktop entry point. Mounts root with title and size. The root closure owns stepping and requests frames for continuity. The closure receives the live [Scheduler] each frame, whose held_keys / window_focused / mouse_* fields are the single polled hardware snapshot (GML keyboard_check / mouse_check_button parity).
save_file_path
shared_edges
store_json
take_shortcut_edges

Type Aliases§

SharedEdges