Companion

object Companion

Functions

Link copied to clipboard

Get the axes in a specified AnalogGroup.

Link copied to clipboard

Get the buttons in a specified ButtonGroup.

Link copied to clipboard

Get the character representation of a button.

Link copied to clipboard
fun isSelected(gamepad: Gamepad, button: Controls): Boolean

Check if a button is currently pressed on a gamepad.

Link copied to clipboard

Convert the gamepad movement values to a Cartesian pose.

Link copied to clipboard

Convert the gamepad translation values to a Cartesian vector.

Link copied to clipboard
fun makeRobotPose(x: Double, y: Double, r: Double): Pose2d

Convert the gamepad movement values to a robot pose.

Link copied to clipboard
fun makeRobotVector(x: Double, y: Double): Vector2d

Convert the gamepad translation values to a robot vector.

Link copied to clipboard
fun <T> mapArgs(args: Array<out T>): HashMap<T, Controls>

Map an array of arguments to controller buttons in order of the enum.

Link copied to clipboard
fun movementString(gamepad: Gamepad): String

Return a string of all buttons and values currently pressed.