rightStickPosition

fun XboxController.rightStickPosition(xDeadzone: Double, yDeadzone: Double): Pair<Double, Double>

Gets the position of the right stick based on the input from the controller.

Receiver

XboxController The controller.

Return

Pair The coordinate representing the position of the right stick. The first element is the x-coordinate, and the second element is the y-coordinate.