pub fn get_key(event: &Event) -> Option<(VirtualKeyCode, ElementState)>Expand description
If this event was for manipulating a keyboard key then this will return the VirtualKeyCode
and the new state.
pub fn get_key(event: &Event) -> Option<(VirtualKeyCode, ElementState)>If this event was for manipulating a keyboard key then this will return the VirtualKeyCode
and the new state.