fromRobot static method

InputController fromRobot(
  1. RobotClient robot,
  2. String name
)

Get the InputController named name from the provided robot.

final myInputController = InputController.fromRobot(myRobotClient, "my_inputController");

For more information, see InputController component.

Implementation

static InputController fromRobot(RobotClient robot, String name) {
  return robot.getResource(InputController.getResourceName(name));
}