ad_editor/
input.rs

1//! Fetching and parsing input from the user
2use crate::{editor::Action, fsys::Message, key::Input};
3
4/// An input event that can be processed by the editor event loop
5#[derive(Debug)]
6pub enum Event {
7    /// A [Message] received from the virtual filesystem interface
8    Message(Message),
9    /// An [Input] from the user
10    Input(Input),
11    /// An [Action] for the event loop to handle
12    Action(Action),
13    /// A signal that our window size has changed
14    WinsizeChanged { rows: usize, cols: usize },
15}