pub struct AxisBinding {
pub name: String,
pub source: AxisSource,
pub scale: f32,
pub dead_zone: f32,
pub smoothing: f32,
}Expand description
An analog axis bound to a name.
Fields§
§name: String§source: AxisSource§scale: f32Scale applied to the raw value.
dead_zone: f32Dead zone (values below this are clamped to 0).
smoothing: f32Smoothing coefficient [0=instant, 0.9=very smooth].
Implementations§
Trait Implementations§
Source§impl Clone for AxisBinding
impl Clone for AxisBinding
Source§fn clone(&self) -> AxisBinding
fn clone(&self) -> AxisBinding
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 moreAuto Trait Implementations§
impl Freeze for AxisBinding
impl RefUnwindSafe for AxisBinding
impl Send for AxisBinding
impl Sync for AxisBinding
impl Unpin for AxisBinding
impl UnsafeUnpin for AxisBinding
impl UnwindSafe for AxisBinding
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