#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for RecognizerParams
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