Function amethyst_input::get_key

source ·
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.