pub struct RadialStick {
pub axes: [usize; 2],
pub deadzone: f32,
}Expand description
An explicit pair, processed after per-axis calibration. Radius <= deadzone
becomes zero; (deadzone, 1) maps linearly to (0, 1); radius >= 1 becomes a unit
vector. Direction is preserved. Require finite 0 <= deadzone < 1 and two
distinct in-range axes which occur in no other pair. Zero still bounds
diagonals to the unit disk; omit the pair to preserve square fullscale.
Fields§
§axes: [usize; 2]§deadzone: f32Trait Implementations§
Source§impl Clone for RadialStick
impl Clone for RadialStick
Source§fn clone(&self) -> RadialStick
fn clone(&self) -> RadialStick
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 RadialStick
impl Debug for RadialStick
Source§impl PartialEq for RadialStick
impl PartialEq for RadialStick
impl Copy for RadialStick
impl StructuralPartialEq for RadialStick
Auto Trait Implementations§
impl Freeze for RadialStick
impl RefUnwindSafe for RadialStick
impl Send for RadialStick
impl Sync for RadialStick
impl Unpin for RadialStick
impl UnwindSafe for RadialStick
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