Skip to main content

key_text

Function key_text 

Source
pub fn key_text<A: ActionSet>(
    name: &str,
    keys: HelpKeys<'_, A>,
) -> Option<String>
Expand description

What a {name} placeholder that names a key says: {Cursor} the cursor keys, {Confirm} (an action’s name) the key keys has for that action. None for any other name. What a game’s text fills in by default (GameData::key_text).