pub enum InputCommand {
Empty,
Wheel(i32),
Press(i32, i32),
Held(i32, i32),
Release,
Cursor(i32, i32),
EndTurn,
}Expand description
A deferred input action, applied by the console-render task.
Variants§
Empty
Unused slot initializer (never enqueued by the producer).
Wheel(i32)
Inverted wheel: raw dz sign convention as before; the render step
multiplies by 3 lines exactly as the old mouse task did.
Press(i32, i32)
Left button pressed at pixel (x, y); the render step decides between
scrollbar click and text-selection start.
Held(i32, i32)
Pointer moved while the left button stayed held.
Release
Left button released.
Cursor(i32, i32)
Pointer moved without a button transition.
EndTurn
End of one mouse turn; never applied.
Trait Implementations§
Source§impl Clone for InputCommand
impl Clone for InputCommand
impl Copy for InputCommand
Auto Trait Implementations§
impl Forget for InputCommand
impl Freeze for InputCommand
impl Move for InputCommand
impl RefUnwindSafe for InputCommand
impl Send for InputCommand
impl Sync for InputCommand
impl Unpin for InputCommand
impl UnsafeUnpin for InputCommand
impl UnwindSafe for InputCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more