analog_channels() names its columns by key, as player() does for
buttons. A measurement that several formats record has one key in all of
them, whatever the format calls it:
Arguments
- movie
A replayr_movie or replayr_poll_stream returned by
read_movie()or a format-specific reader.- idx
Player index, 1-based. Defaults to 1 (player 1).
Value
Data frame with one row per channel: column, key, and name,
the label of the field in the recording or, for formats without labels,
a description of the field.
Details
left_x,left_y,right_x,right_y: the axes of the analogue sticks. The N64 stick, the 3DS Circle Pad and the Nunchuk stick are the left stick; the 3DS C-stick is the right one.left_trigger,right_trigger: analogue triggers.mouse_dx,mouse_dy: movement of a mouse since the previous observation.mouse_xandmouse_yare positions.touch_x,touch_y: position on a touch surface.aim_x,aim_y: where a light gun points.accel_x,accel_y,accel_zandgyro_x,gyro_y,gyro_z: motion sensors.
Every other channel has the key formed from its own name in lower case,
such as tilt_x for the BizHawk field Tilt X. Where two channels of a
controller would take one shared key, each keeps the key of its own name.
Only the names are shared: values keep the range and unit of their source
(see analog_channels()).
See also
button_layout() for the digital controls.
Examples
path <- system.file("extdata", "paper", "mouse-drag.bk2", package = "replayr")
channel_layout(read_movie(path))
#> column key name
#> 1 1 mouse_dx P1 Motion Left / Right
#> 2 2 mouse_dy P1 Motion Up / Down