pub struct InputWrapper<'a> { /* private fields */ }Implementations§
Source§impl InputWrapper<'_>
impl InputWrapper<'_>
pub fn new<'a>(instance: RefInstance<'a, Input, Shared>) -> InputWrapper<'a>
pub fn from_variant<'a>( variant: &Variant, ) -> Result<InputWrapper<'a>, FromVariantError>
Trait Implementations§
Source§impl InputQuery for InputWrapper<'_>
impl InputQuery for InputWrapper<'_>
Source§fn pop_jump(&mut self) -> bool
fn pop_jump(&mut self) -> bool
Returns true if a jump is requested. It can return
true several times in a row, even if the button/key
has been pressed once, but this only for a limited time.
OTOH if you call pop_jump very late after the button/key
press, it will still buffer it and return true.
Auto Trait Implementations§
impl<'a> Freeze for InputWrapper<'a>
impl<'a> !RefUnwindSafe for InputWrapper<'a>
impl<'a> !Send for InputWrapper<'a>
impl<'a> !Sync for InputWrapper<'a>
impl<'a> Unpin for InputWrapper<'a>
impl<'a> !UnwindSafe for InputWrapper<'a>
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