Struct wave::recognizer::RecognizerParams
source · #[repr(C)]pub struct RecognizerParams {
pub gesture_threshold_dist: f32,
pub static_hold_time_ms: u32,
pub static_hold_tolerance_dist: f32,
pub swipe_tolerance_dist: f32,
pub swipe_horizontal_travel_dist: f32,
pub swipe_vertical_travel_dist: f32,
}
Expand description
Parameters for gesture recognition.
Fields§
§gesture_threshold_dist: f32
The furthest hand distance for gesture recognition.
static_hold_time_ms: u32
The time the hand has to be still to recognize a static hold.
static_hold_tolerance_dist: f32
How much the hand can move towards / away from the sensor while doing a static hold.
swipe_tolerance_dist: f32
How much the hand can move towards / away from the sensor while doing a swipe.
swipe_horizontal_travel_dist: f32
How much distance the hand has to travel to detect a horizontal swipe.
swipe_vertical_travel_dist: f32
How much distance the hand has to travel to detect a vertical swipe.
Trait Implementations§
source§impl Clone for RecognizerParams
impl Clone for RecognizerParams
source§fn clone(&self) -> RecognizerParams
fn clone(&self) -> RecognizerParams
Returns a copy 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 RecognizerParams
impl Debug for RecognizerParams
source§impl Default for RecognizerParams
impl Default for RecognizerParams
impl Copy for RecognizerParams
Auto Trait Implementations§
impl RefUnwindSafe for RecognizerParams
impl Send for RecognizerParams
impl Sync for RecognizerParams
impl Unpin for RecognizerParams
impl UnwindSafe for RecognizerParams
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