pub enum InputValue {
Released,
Pressed,
Repeat(NonZeroU64),
Trigger,
Count(NonZeroU64),
Duration(Duration),
Scalar(i64),
}Expand description
Common values understood by button-oriented input subsystems.
A binding chooses the value explicitly. Count and Duration are available
for applications which want semantic payloads; fixed press/release/pulse
mappings can use the dedicated variants.
Variants§
Trait Implementations§
Source§impl Clone for InputValue
impl Clone for InputValue
impl Copy for InputValue
Source§impl Debug for InputValue
impl Debug for InputValue
impl Eq for InputValue
Source§impl Hash for InputValue
impl Hash for InputValue
Source§impl PartialEq for InputValue
impl PartialEq for InputValue
impl StructuralPartialEq for InputValue
Auto Trait Implementations§
impl Freeze for InputValue
impl RefUnwindSafe for InputValue
impl Send for InputValue
impl Sync for InputValue
impl Unpin for InputValue
impl UnsafeUnpin for InputValue
impl UnwindSafe for InputValue
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