pub struct SyntheticPointer {
pub pointer_type: PointerType,
pub pointer_count: u32,
/* private fields */
}Fields§
§pointer_type: PointerType§pointer_count: u32Implementations§
Source§impl SyntheticPointer
impl SyntheticPointer
Sourcepub fn new(
pointer_type: PointerType,
pointer_count: u32,
) -> Result<Self, SyntheticPointerError>
pub fn new( pointer_type: PointerType, pointer_count: u32, ) -> Result<Self, SyntheticPointerError>
Creates a new synthetic pointer of the type specified. The maximum working number of pointers is [MAX_POINTERS]
Sourcepub fn pen_input(
&mut self,
input: &Option<PenInput>,
) -> Result<(), SyntheticPointerError>
pub fn pen_input( &mut self, input: &Option<PenInput>, ) -> Result<(), SyntheticPointerError>
Schedules pen input for injection. If None, the pen is outside the detection range. After this, you need to call inject()
Sourcepub fn touch_input(
&mut self,
input: &[Option<TouchInput>; 10],
) -> Result<(), SyntheticPointerError>
pub fn touch_input( &mut self, input: &[Option<TouchInput>; 10], ) -> Result<(), SyntheticPointerError>
Schedules touch input for injection. If None, the finger is outside of the detection range. Set all the disabled fingers to None. After this, you need to call inject()
Sourcepub fn inject(&mut self) -> Result<(), SyntheticPointerError>
pub fn inject(&mut self) -> Result<(), SyntheticPointerError>
Sends the scheduled input data to windows.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyntheticPointer
impl RefUnwindSafe for SyntheticPointer
impl Send for SyntheticPointer
impl Sync for SyntheticPointer
impl Unpin for SyntheticPointer
impl UnwindSafe for SyntheticPointer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more