MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / perform_tap_with_input

Function perform_tap_with_input

packages/server/src/main.rs:5451–5460  ·  view source on GitHub ↗
(
    input: &NativeInputSession,
    x: f64,
    y: f64,
    duration_ms: u64,
)

Source from the content-addressed store, hash-verified

5449}
5450
5451fn perform_tap_with_input(
5452 input: &NativeInputSession,
5453 x: f64,
5454 y: f64,
5455 duration_ms: u64,
5456) -> Result<(), crate::error::AppError> {
5457 input.send_touch(x, y, "began")?;
5458 sleep_ms(duration_ms);
5459 input.send_touch(x, y, "ended")
5460}
5461
5462fn perform_swipe(
5463 bridge: &NativeBridge,

Callers 3

mainFunction · 0.85
perform_tapFunction · 0.85
run_batch_stepFunction · 0.85

Calls 2

sleep_msFunction · 0.85
send_touchMethod · 0.45

Tested by

no test coverage detected