Skip to main content

to_key

Function to_key 

Source
pub fn to_key(code: KeyCode) -> Option<Key>
Expand description

The game key for a macroquad key code; None for keys the game ignores (bare modifiers, which only form Shift+ chords, and rare keys).

On the web, miniquad 0.4 reports neither ' nor /, and reports the ` key as ' (its JS key table); they work on native.