mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Tap the touchscreen from --input-script
The input script pressed POWER and the volume buttons only, so touch- driven payloads - Nyx above all - could not be driven headless. `<ms> TAP <x> <y> [hold_ms]` touches the screen at (x, y) in the 1280x720 picture bdk's touch driver reports, inverted through its 15..1264 / 15..704 scaling to the FTS4 panel's raw coordinates, and lifts after hold_ms. The press and release go through the same event queue as a mouse click in the window. This is how Nyx's Tools > USB Tools > SD Card is reached headless: "12000 TAP 516 531, 15000 TAP 640 32, 17000 TAP 640 423, 19000 TAP 850 420, 22000 TAP 170 202" on hekate 6.5.3. The README now documents --input-script, which it did not mention before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
3 files changed
+60
-5
No files matched your search
@@ -631,7 +631,11 @@ while (te_idx < n && state.emu_usec >= te_events[te_idx].at_us) {
|
||||
|
||||
Because `emu_usec` is deterministic, the same timestamps land at the same UI
|
||||
states across runs. Adding a new automated flow is "press the buttons once
|
||||
with `[input]` logging on, copy the timestamps".
|
||||
with `[input]` logging on, copy the timestamps". `--input-script` does the
|
||||
same for any payload without a rebuild (`input_script.cpp`): button presses
|
||||
and touchscreen taps (`<ms> TAP <x> <y>`, in the 1280x720 picture, inverted
|
||||
through bdk's touch scaling) keyed to `emu_usec`. That is how Nyx's USB tools
|
||||
are reached headless.
|
||||
|
||||
## CCPLEX CPU0
|
||||
|
||||
|
||||
Reference in new issue
Block a user