From 0b30297393430450486ce54ba5c3c47155a0dc68 Mon Sep 17 00:00:00 2001 From: gbc dev Date: Thu, 16 Jul 2026 16:06:49 +0200 Subject: main/gb: --keys button-script harness + serial_no_eof for OSK testing --keys "udlrabse." plays scripted joypad taps (each char = one button held 10 frames then released 10, so the guest sees a clean edge); pairs with --headless --shot to drive on-screen input and capture the result. When --keys is active, serial-RX EOF stays pending instead of sending $04, so a shell blocked on read waits for OSK input instead of exiting. --- src/gb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gb.h') diff --git a/src/gb.h b/src/gb.h index 7959e60..5192e85 100644 --- a/src/gb.h +++ b/src/gb.h @@ -113,6 +113,7 @@ struct GB { bool hdma_active; u64 cycles; // total T-cycles elapsed + bool serial_no_eof; // if true, serial-RX EOF stays pending (don't send $04) bool serial_log; // print serial output to stderr (blargg tests) int serial_out_fd; // if >=0, transmitted serial bytes written here (stdout) int serial_in_fd; // if >=0, received serial bytes read here (stdin), else 0xFF -- cgit v1.3.1-sl0p