Skip to contents

Returns the mnemonic column of button_layout(): one character for each registered control, for writing a controller state as compact text. Controls outside the registry have mnemonics such as {key_space}. The accessors name their columns by key, not by mnemonic; use button_layout() on a movie to obtain its complete layout.

Usage

universal_buttons()

Value

Character vector.

Examples

head(universal_buttons(), 12)
#>  [1] "R" "L" "D" "U" "T" "S" "B" "A" "x" "y" "p" "q"
# A controller state as text: Right, B and A held.
layout <- button_layout()
paste(layout$mnemonic[match(c("dpad_right", "b", "a"), layout$key)], collapse = "")
#> [1] "RBA"