(&self, x: f64, y: f64, phase: &str, edge: u32)
| 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, |
no test coverage detected