Use button_layout() to map these columns to stable controller IDs.
Arguments
- movie
A replayr_movie or replayr_poll_stream returned by
read_movie()or a format-specific reader.
Examples
path <- system.file("extdata", "sample.m64", package = "replayr")
n_buttons(read_movie(path))
#> [1] 14
# Stick directions selected with `analog` are further columns.
n_buttons(read_movie(path, analog = "cardinal8"))
#> [1] 22