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

Function perform_tap

packages/server/src/main.rs:5437–5449  ·  view source on GitHub ↗
(
    bridge: &NativeBridge,
    udid: &str,
    x: f64,
    y: f64,
    duration_ms: u64,
)

Source from the content-addressed store, hash-verified

5435}
5436
5437fn perform_tap(
5438 bridge: &NativeBridge,
5439 udid: &str,
5440 x: f64,
5441 y: f64,
5442 duration_ms: u64,
5443) -> Result<(), crate::error::AppError> {
5444 if bridge_simulator_is_tvos(bridge, udid) {
5445 return press_tvos_remote_key(bridge, udid, HID_KEY_ENTER);
5446 }
5447 let input = bridge.create_input_session(udid)?;
5448 perform_tap_with_input(&input, x, y, duration_ms)
5449}
5450
5451fn perform_tap_with_input(
5452 input: &NativeInputSession,

Callers 2

mainFunction · 0.85
run_batch_stepFunction · 0.85

Calls 4

perform_tap_with_inputFunction · 0.85
create_input_sessionMethod · 0.80
bridge_simulator_is_tvosFunction · 0.70
press_tvos_remote_keyFunction · 0.70

Tested by

no test coverage detected