Struct ClientInputOptions
pub struct ClientInputOptions {
pub sensitivity: f32,
pub invert_x: bool,
pub invert_y: bool,
pub mouse_wheel_sensitivity: f32,
pub discrete_scroll: bool,
pub toggle_crouch: bool,
pub toggle_sprint: bool,
pub auto_jump: bool,
}Expand description
A snapshot of the client’s input preferences.
Fields§
§sensitivity: f32Mouse sensitivity, normally between 0 and 1.
invert_x: boolWhether horizontal mouse movement is inverted.
invert_y: boolWhether vertical mouse movement is inverted.
mouse_wheel_sensitivity: f32Multiplier applied to mouse wheel movement.
discrete_scroll: boolWhether scroll input is reduced to discrete steps.
toggle_crouch: boolWhether crouching toggles instead of requiring a held key.
toggle_sprint: boolWhether sprinting toggles instead of requiring a held key.
auto_jump: boolWhether automatic jumping is enabled.
Trait Implementations§
§impl Clone for ClientInputOptions
impl Clone for ClientInputOptions
§fn clone(&self) -> ClientInputOptions
fn clone(&self) -> ClientInputOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientInputOptions
§impl Debug for ClientInputOptions
impl Debug for ClientInputOptions
§impl PartialEq for ClientInputOptions
impl PartialEq for ClientInputOptions
impl StructuralPartialEq for ClientInputOptions
Auto Trait Implementations§
impl Freeze for ClientInputOptions
impl RefUnwindSafe for ClientInputOptions
impl Send for ClientInputOptions
impl Sync for ClientInputOptions
impl Unpin for ClientInputOptions
impl UnsafeUnpin for ClientInputOptions
impl UnwindSafe for ClientInputOptions
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