pub struct ControlSettings {
pub mouse_sensitivity: f32,
pub touch_sensitivity: f32,
pub pad_look: Vec2,
pub pad_deadzone: f32,
pub pad_curve: f32,
pub invert_y: bool,
pub gamepad: u8,
}Fields§
§mouse_sensitivity: f32Radians per normalized viewport-width/height mouse delta.
touch_sensitivity: f32Radians per logical display pixel for a touch-look region.
pad_look: Vec2Radians/second for a fully deflected right stick.
pad_deadzone: f32§pad_curve: f32§invert_y: bool§gamepad: u8Implementations§
Trait Implementations§
Source§impl Clone for ControlSettings
impl Clone for ControlSettings
Source§fn clone(&self) -> ControlSettings
fn clone(&self) -> ControlSettings
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 ControlSettings
impl Debug for ControlSettings
Source§impl Default for ControlSettings
impl Default for ControlSettings
Source§fn default() -> ControlSettings
fn default() -> ControlSettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for ControlSettings
impl PartialEq for ControlSettings
impl Copy for ControlSettings
impl StructuralPartialEq for ControlSettings
Auto Trait Implementations§
impl Freeze for ControlSettings
impl RefUnwindSafe for ControlSettings
impl Send for ControlSettings
impl Sync for ControlSettings
impl Unpin for ControlSettings
impl UnwindSafe for ControlSettings
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