mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 14:50:43 +00:00
Add interactive guest execution with dynamic input handling and rendering (Gate 4) through the versioned C runtime interface. The guest fixture (fixtures/pe/interactive.exe, generated by fixtures/pe/interactive.py) runs on a dedicated session-owned thread and polls host input snapshots via xenora.dll!input_poll. It steers its rendered column position (0..3) on native Metal and submits frames with xenora.dll!frame_submit(column). Add xenora_session_start_interactive_loop, xenora_session_send_input, xenora_session_queue_input, and xenora_session_get_recorded_frame to the C interface, plus input masks (XENORA_INPUT_*) and xenora_input_state. Pre-queuing inputs enables deterministic replay across independent sessions without physical interaction. Xenora.app gains interactive frame-loop controls (Interactive 300 frames, Left, Right, Release) and a --smoke-interactive CLI flag. Four GPU acceptance tests verify input-driven state changes, reproducible frame sequences across deterministic replays, clean release/focus behavior without stuck keys, and prompt join on session destruction. Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>