StadiaControllerSim
- class wpilib.simulation.StadiaControllerSim(*args, **kwargs)
Bases:
GenericHIDSim
Class to control a simulated Stadia controller.
Overloaded function.
__init__(self: wpilib.simulation._simulation.StadiaControllerSim, joystick: wpilib._wpilib.StadiaController) -> None
Constructs from a StadiaController object.
- Parameters:
joystick – controller to simulate
__init__(self: wpilib.simulation._simulation.StadiaControllerSim, port: typing.SupportsInt) -> None
Constructs from a joystick port number.
- Parameters:
port – port number
- setAButton(value: bool) None
Change the value of the A button on the controller.
- Parameters:
value – the new value
- setBButton(value: bool) None
Change the value of the B button on the controller.
- Parameters:
value – the new value
- setEllipsesButton(value: bool) None
Change the value of the ellipses button on the controller.
- Parameters:
value – the new value
- setFrameButton(value: bool) None
Change the value of the frame button on the controller.
- Parameters:
value – the new value
- setGoogleButton(value: bool) None
Change the value of the google button on the controller.
- Parameters:
value – the new value
- setHamburgerButton(value: bool) None
Change the value of the hamburger button on the controller.
- Parameters:
value – the new value
- setLeftBumperButton(value: bool) None
Change the value of the left bumper button on the controller.
- Parameters:
value – the new value
- setLeftStickButton(value: bool) None
Change the value of the left stick button on the controller.
- Parameters:
value – the new value
- setLeftTriggerButton(value: bool) None
Change the value of the left trigger button on the controller.
- Parameters:
value – the new value
- setLeftX(value: SupportsFloat) None
Change the left X value of the controller’s joystick.
- Parameters:
value – the new value
- setLeftY(value: SupportsFloat) None
Change the left Y value of the controller’s joystick.
- Parameters:
value – the new value
- setRightBumperButton(value: bool) None
Change the value of the right bumper button on the controller.
- Parameters:
value – the new value
- setRightStickButton(value: bool) None
Change the value of the right stick button on the controller.
- Parameters:
value – the new value
- setRightTriggerButton(value: bool) None
Change the value of the right trigger button on the controller.
- Parameters:
value – the new value
- setRightX(value: SupportsFloat) None
Change the right X value of the controller’s joystick.
- Parameters:
value – the new value
- setRightY(value: SupportsFloat) None
Change the right Y value of the controller’s joystick.
- Parameters:
value – the new value
- setStadiaButton(value: bool) None
Change the value of the stadia button on the controller.
- Parameters:
value – the new value
- setXButton(value: bool) None
Change the value of the X button on the controller.
- Parameters:
value – the new value
- setYButton(value: bool) None
Change the value of the Y button on the controller.
- Parameters:
value – the new value