pub struct InputConfig {
pub mouse_sensitivity: f32,
pub mouse_invert_y: bool,
pub gamepad_deadzone: f32,
pub gamepad_rumble: f32,
pub key_repeat: bool,
pub key_repeat_delay: f32,
pub key_repeat_rate: f32,
}Fields§
§mouse_sensitivity: f32Mouse sensitivity multiplier.
mouse_invert_y: boolMouse Y-axis invert.
gamepad_deadzone: f32Deadzone for analog gamepad axes.
gamepad_rumble: f32Rumble intensity (0.0-1.0).
key_repeat: boolEnable key repeat for held keys.
key_repeat_delay: f32Key repeat initial delay (seconds).
key_repeat_rate: f32Key repeat rate (repeats/second).
Trait Implementations§
Source§impl Clone for InputConfig
impl Clone for InputConfig
Source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
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 InputConfig
impl Debug for InputConfig
Source§impl Default for InputConfig
impl Default for InputConfig
Source§impl<'de> Deserialize<'de> for InputConfig
impl<'de> Deserialize<'de> for InputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputConfig
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnsafeUnpin for InputConfig
impl UnwindSafe for InputConfig
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