Skip to contents

Use button_layout() to map these columns to stable controller IDs.

Usage

n_buttons(movie)

Arguments

movie

A replayr_movie or replayr_poll_stream returned by read_movie() or a format-specific reader.

Value

Integer scalar.

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