pub struct HoverStabilizerConfig {
pub drift_allowance: f32,
pub detection_threshold: f32,
pub hysteresis_cells: u16,
pub decay_rate: f32,
pub hold_timeout: Duration,
}Expand description
Configuration for hover jitter stabilization.
Fields§
§drift_allowance: f32CUSUM drift allowance k. Higher = more tolerant of boundary oscillation.
Default: 0.5 (normalized distance units)
detection_threshold: f32CUSUM detection threshold h. Switch target when cumulative score exceeds this.
Default: 2.0 (equivalent to ~2-3 frames of consistent crossing signal)
hysteresis_cells: u16Hysteresis band width in cells. Pointer must move this far past boundary before the boundary crossing is considered definitive. Default: 1 cell
decay_rate: f32Decay rate for CUSUM score when pointer is inside current target. Prevents lingering switch intent from stale history. Default: 0.1 per frame
hold_timeout: DurationMaximum duration to hold a target when no hit updates arrive. After this, target resets to None. Default: 500ms
Trait Implementations§
Source§impl Clone for HoverStabilizerConfig
impl Clone for HoverStabilizerConfig
Source§fn clone(&self) -> HoverStabilizerConfig
fn clone(&self) -> HoverStabilizerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HoverStabilizerConfig
impl Debug for HoverStabilizerConfig
Auto Trait Implementations§
impl Freeze for HoverStabilizerConfig
impl RefUnwindSafe for HoverStabilizerConfig
impl Send for HoverStabilizerConfig
impl Sync for HoverStabilizerConfig
impl Unpin for HoverStabilizerConfig
impl UnsafeUnpin for HoverStabilizerConfig
impl UnwindSafe for HoverStabilizerConfig
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