main_menu_event

Function main_menu_event 

Source
pub fn main_menu_event() -> MainMenuInput
Expand description

Check input on the greeting screen Return Some(GreetingOption) if input is valid, with the chosen Greeting Option, None otherwise

ยงPanics

if impossible to get key event, better crash as game will be unplayable