Skip to main content

handle_input

Function handle_input 

Source
pub fn handle_input(state: &mut MapState) -> Result<MapAction>
Expand description

Poll for input events and update map state accordingly.

Returns MapAction::Resized when the terminal size changes, so the caller can trigger a re-render.