Enum prototty_wasm::prototty_input::Input
pub enum Input {
Show 15 variants
Char(char),
Function(u8),
Up,
Down,
Left,
Right,
Home,
End,
PageUp,
PageDown,
Delete,
MouseMove(Coord),
MousePress {
button: MouseButton,
coord: Coord,
},
MouseRelease {
button: MouseButton,
coord: Coord,
},
MouseScroll {
direction: ScrollDirection,
coord: Coord,
},
}
Expand description
An input event
Variants§
Char(char)
Function(u8)
Up
Down
Left
Right
Home
End
PageUp
PageDown
Delete
MouseMove(Coord)
MousePress
MouseRelease
MouseScroll
Trait Implementations§
§impl Ord for Input
impl Ord for Input
§impl PartialOrd<Input> for Input
impl PartialOrd<Input> for Input
§fn partial_cmp(&self, other: &Input) -> Option<Ordering>
fn partial_cmp(&self, other: &Input) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more