(
&self,
x1: f64,
y1: f64,
x2: f64,
y2: f64,
phase: &str,
)
| 989 | } |
| 990 | |
| 991 | pub fn send_multitouch( |
| 992 | &self, |
| 993 | x1: f64, |
| 994 | y1: f64, |
| 995 | x2: f64, |
| 996 | y2: f64, |
| 997 | phase: &str, |
| 998 | ) -> Result<(), AppError> { |
| 999 | let phase = CString::new(phase).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 1000 | unsafe { |
| 1001 | let mut error = ptr::null_mut(); |
| 1002 | bool_result( |
| 1003 | ffi::xcw_native_input_send_multitouch( |
| 1004 | self.handle, |
| 1005 | x1, |
| 1006 | y1, |
| 1007 | x2, |
| 1008 | y2, |
| 1009 | phase.as_ptr(), |
| 1010 | &mut error, |
| 1011 | ), |
| 1012 | error, |
| 1013 | ) |
| 1014 | } |
| 1015 | } |
| 1016 | |
| 1017 | pub fn send_key(&self, key_code: u16, modifiers: u32) -> Result<(), AppError> { |
| 1018 | unsafe { |
no test coverage detected