pub enum TracedInput {
Key(KeyCode),
MouseButton(PointerButton),
Wheel,
Control(String),
ControlStick(String),
PadButton(PadButton),
PadStick(Stick),
PadTrigger(Trigger),
}Expand description
One input the trace records — see the module docs for which.
Variants§
Key(KeyCode)
A key went down.
MouseButton(PointerButton)
A pointer button went down.
Wheel
The wheel turned.
Control(String)
An on-screen button was pressed — ActionMap::virtual_button.
ControlStick(String)
An on-screen stick left centre — ActionMap::virtual_stick.
PadButton(PadButton)
A pad button went down, on any pad.
PadStick(Stick)
A pad stick was pushed out past the activity threshold.
PadTrigger(Trigger)
A pad trigger was pulled past the activity threshold.
Trait Implementations§
Source§impl Clone for TracedInput
impl Clone for TracedInput
Source§impl Debug for TracedInput
impl Debug for TracedInput
Source§impl Display for TracedInput
Spelled as Binding’s text form spells the binding that reads it —
Space, Mouse:Left, Pad:South, Virtual:jump — so a trace row and the
binding beside it read alike. A stick or a trigger has no dead zone of its
own, so it is spelled without one: PadStick:Left.
impl Display for TracedInput
Spelled as Binding’s text form spells the binding that reads it —
Space, Mouse:Left, Pad:South, Virtual:jump — so a trace row and the
binding beside it read alike. A stick or a trigger has no dead zone of its
own, so it is spelled without one: PadStick:Left.
Source§impl PartialEq for TracedInput
impl PartialEq for TracedInput
impl StructuralPartialEq for TracedInput
Auto Trait Implementations§
impl Freeze for TracedInput
impl RefUnwindSafe for TracedInput
impl Send for TracedInput
impl Sync for TracedInput
impl Unpin for TracedInput
impl UnsafeUnpin for TracedInput
impl UnwindSafe for TracedInput
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