aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb.h
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-16 16:06:49 +0200
committergbc dev <gbc@localhost>2026-07-16 16:06:49 +0200
commit0b30297393430450486ce54ba5c3c47155a0dc68 (patch)
tree2d978d65bc50e99a95e7e9c8a56d3cbdfb68d093 /src/gb.h
parentmain: --shot with --headless dumps final LCD on exit (diff)
downloadsl0pboy-0b30297393430450486ce54ba5c3c47155a0dc68.tar.gz
sl0pboy-0b30297393430450486ce54ba5c3c47155a0dc68.tar.xz
sl0pboy-0b30297393430450486ce54ba5c3c47155a0dc68.zip
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.
Diffstat (limited to 'src/gb.h')
-rw-r--r--src/gb.h1
1 files changed, 1 insertions, 0 deletions
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