A rendering claim about iris was verified by hand from another checkout, because the compositor script and the input replay lived in ai-app's submodule and not here. `scripts/run-headless.sh` starts a headless sway on its own socket, runs an example against it and screenshots the result. `rig-input`'s `replay-touch` drives a recorded gesture in through Wayland's virtual pointer, since a headless compositor has no input device to move. `iris::harness` gains the `.touch` parser, so a recording means the same thing replayed into a harness as into a window rather than being read twice by two parsers. The ai-app copy's `--phone` became `--mode`, since which phone is not iris's business; its `IRIS_SCALE` has nothing to hand a density to here, so it waits for one.
17 lines
477 B
TOML
17 lines
477 B
TOML
[package]
|
|
name = "rig-input"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
# Replays `.touch` recordings through Wayland's virtual-pointer protocol;
|
|
# headless sway has no input devices for coordinate-driving tools to move.
|
|
[[bin]]
|
|
name = "replay-touch"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Share the harness parser so both ways of replaying read a file the same.
|
|
iris = { path = ".." }
|
|
wayland-client = { workspace = true }
|
|
wayland-protocols-wlr = { workspace = true }
|