pub struct MouseAnalogSetting {
pub curve: (f32, f32),
pub max_time: f32,
pub min_ticks_per_ms: f32,
pub max_ticks_per_ms: f32,
}Fields§
§curve: (f32, f32)§max_time: f32§min_ticks_per_ms: f32§max_ticks_per_ms: f32Implementations§
Source§impl MouseAnalogSetting
impl MouseAnalogSetting
pub fn deserialize( bin: &mut impl Iterator<Item = u16>, ) -> Option<MouseAnalogSetting>
pub fn mouse_delta( &self, time_since_last_report: f32, now: u32, k: &MouseMove, ) -> i8
Trait Implementations§
Source§impl Clone for MouseAnalogSetting
impl Clone for MouseAnalogSetting
Source§fn clone(&self) -> MouseAnalogSetting
fn clone(&self) -> MouseAnalogSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MouseAnalogSetting
impl Debug for MouseAnalogSetting
impl Copy for MouseAnalogSetting
Auto Trait Implementations§
impl Freeze for MouseAnalogSetting
impl RefUnwindSafe for MouseAnalogSetting
impl Send for MouseAnalogSetting
impl Sync for MouseAnalogSetting
impl Unpin for MouseAnalogSetting
impl UnsafeUnpin for MouseAnalogSetting
impl UnwindSafe for MouseAnalogSetting
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