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
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.

Link copied to clipboard
infix fun Controller.rising(button: Controls): Boolean

getDebounced extension for Controller.

Link copied to clipboard
fun vec(lsx: Double, lsy: Double): Vector2d

Convert the gamepad translation values to a robot vector. This inverts the y value as the gamepad y stick is inverted.

Link copied to clipboard
fun vel(lsx: Double, lsy: Double, rsx: Double): PoseVelocity2d

Convert the gamepad movement values into a robot velocity. This inverts the y value as the gamepad y stick is inverted.