pub struct InputHandler<T: InputType> { /* private fields */ }Implementations§
Source§impl<T: InputType> InputHandler<T>
impl<T: InputType> InputHandler<T>
Sourcepub fn axis_value(&self, input_type: T) -> f32
pub fn axis_value(&self, input_type: T) -> f32
Gets the current axis value for a given InputType
Sourcepub fn action_value(&self, input_type: T) -> bool
pub fn action_value(&self, input_type: T) -> bool
Gets the current action value for a given InputType
Trait Implementations§
Source§impl<T: InputType> Default for InputHandler<T>
impl<T: InputType> Default for InputHandler<T>
impl<T: InputType> Resource for InputHandler<T>
Auto Trait Implementations§
impl<T> Freeze for InputHandler<T>
impl<T> RefUnwindSafe for InputHandler<T>where
T: RefUnwindSafe,
impl<T> Send for InputHandler<T>
impl<T> Sync for InputHandler<T>
impl<T> Unpin for InputHandler<T>where
T: Unpin,
impl<T> UnwindSafe for InputHandler<T>where
T: UnwindSafe,
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