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

Function perform_tvos_touch_command

packages/server/src/main.rs:5421–5435  ·  view source on GitHub ↗
(
    bridge: &NativeBridge,
    udid: &str,
    phase: &str,
    down: bool,
    up: bool,
)

Source from the content-addressed store, hash-verified

5419}
5420
5421fn perform_tvos_touch_command(
5422 bridge: &NativeBridge,
5423 udid: &str,
5424 phase: &str,
5425 down: bool,
5426 up: bool,
5427) -> Result<(), crate::error::AppError> {
5428 if down || up {
5429 if up {
5430 return press_tvos_remote_key(bridge, udid, HID_KEY_ENTER);
5431 }
5432 return Ok(());
5433 }
5434 perform_tvos_touch_phase(bridge, udid, phase)
5435}
5436
5437fn perform_tap(
5438 bridge: &NativeBridge,

Callers 2

mainFunction · 0.85
run_batch_stepFunction · 0.85

Calls 2

perform_tvos_touch_phaseFunction · 0.85
press_tvos_remote_keyFunction · 0.70

Tested by

no test coverage detected