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

Method send_edge_touch

packages/server/src/native/bridge.rs:973–989  ·  view source on GitHub ↗
(&self, x: f64, y: f64, phase: &str, edge: u32)

Source from the content-addressed store, hash-verified

971 }
972
973 pub fn send_edge_touch(&self, x: f64, y: f64, phase: &str, edge: u32) -> Result<(), AppError> {
974 let phase = CString::new(phase).map_err(|e| AppError::bad_request(e.to_string()))?;
975 unsafe {
976 let mut error = ptr::null_mut();
977 bool_result(
978 ffi::xcw_native_input_send_edge_touch(
979 self.handle,
980 x,
981 y,
982 phase.as_ptr(),
983 edge,
984 &mut error,
985 ),
986 error,
987 )
988 }
989 }
990
991 pub fn send_multitouch(
992 &self,

Callers 2

run_batch_stepFunction · 0.45
run_control_messageFunction · 0.45

Calls 3

bool_resultFunction · 0.85

Tested by

no test coverage detected