pub enum ChordWait {
None,
Window,
Release,
}Expand description
How long a controller button that is in a button chord
holds back its own actions, so that pressing its partner can fire the
chord instead (ticket 1034). See Keymap::chord_wait.
Variants§
None
Not at all: it acts on press, like any button. A button in no chord, or one whose own action repeats (the cursor never lags). A chord with it fires only when it is pressed while its partner waits.
Window
For the chord window or until it is let go, whichever is first: its partner may come just after it.
Release
Until it is let go: a partner that acts on press may come any time while it is held.
Trait Implementations§
impl Copy for ChordWait
impl Eq for ChordWait
impl StructuralPartialEq for ChordWait
Auto Trait Implementations§
impl Freeze for ChordWait
impl RefUnwindSafe for ChordWait
impl Send for ChordWait
impl Sync for ChordWait
impl Unpin for ChordWait
impl UnsafeUnpin for ChordWait
impl UnwindSafe for ChordWait
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