pub enum ResolvedActionState {
Pressed,
Held,
Delta(Vec2),
}Expand description
State of a resolved action for one frame.
Variants§
Pressed
The action was triggered this frame (KeyPress).
Held
The action is actively held (KeyHold, Drag in progress).
Delta(Vec2)
The action is producing a two-axis delta (Drag, WheelXY).
Trait Implementations§
Source§impl Clone for ResolvedActionState
impl Clone for ResolvedActionState
Source§fn clone(&self) -> ResolvedActionState
fn clone(&self) -> ResolvedActionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolvedActionState
Source§impl Debug for ResolvedActionState
impl Debug for ResolvedActionState
Source§impl PartialEq for ResolvedActionState
impl PartialEq for ResolvedActionState
impl StructuralPartialEq for ResolvedActionState
Auto Trait Implementations§
impl Forget for ResolvedActionState
impl Freeze for ResolvedActionState
impl Move for ResolvedActionState
impl RefUnwindSafe for ResolvedActionState
impl Send for ResolvedActionState
impl Sync for ResolvedActionState
impl Unpin for ResolvedActionState
impl UnsafeUnpin for ResolvedActionState
impl UnwindSafe for ResolvedActionState
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