NiDsStadiaControllerSim
- class wpilib.simulation.NiDsStadiaControllerSim(*args, **kwargs)
Bases:
GenericHIDSimClass to control a simulated NiDsStadia controller.
Overloaded function.
__init__(self: wpilib.simulation._simulation.NiDsStadiaControllerSim, joystick: wpilib._wpilib.NiDsStadiaController) -> None
Constructs from a NiDsStadiaController object.
- Parameters:
joystick – controller to simulate
__init__(self: wpilib.simulation._simulation.NiDsStadiaControllerSim, port: typing.SupportsInt | typing.SupportsIndex) -> None
Constructs from a joystick port number.
- Parameters:
port – port number
- set_a_button(value: bool) None
Change the value of the A button on the controller.
- Parameters:
value – the new value
- set_b_button(value: bool) None
Change the value of the B button on the controller.
- Parameters:
value – the new value
- set_ellipses_button(value: bool) None
Change the value of the ellipses button on the controller.
- Parameters:
value – the new value
- set_frame_button(value: bool) None
Change the value of the frame button on the controller.
- Parameters:
value – the new value
- set_google_button(value: bool) None
Change the value of the google button on the controller.
- Parameters:
value – the new value
- set_hamburger_button(value: bool) None
Change the value of the hamburger button on the controller.
- Parameters:
value – the new value
- set_left_bumper_button(value: bool) None
Change the value of the left bumper button on the controller.
- Parameters:
value – the new value
- set_left_stick_button(value: bool) None
Change the value of the left stick button on the controller.
- Parameters:
value – the new value
- set_left_trigger_button(value: bool) None
Change the value of the left trigger button on the controller.
- Parameters:
value – the new value
- set_left_x(value: SupportsFloat | SupportsIndex) None
Change the left X value of the controller’s joystick.
- Parameters:
value – the new value
- set_left_y(value: SupportsFloat | SupportsIndex) None
Change the left Y value of the controller’s joystick.
- Parameters:
value – the new value
- set_right_bumper_button(value: bool) None
Change the value of the right bumper button on the controller.
- Parameters:
value – the new value
- set_right_stick_button(value: bool) None
Change the value of the right stick button on the controller.
- Parameters:
value – the new value
- set_right_trigger_button(value: bool) None
Change the value of the right trigger button on the controller.
- Parameters:
value – the new value
- set_right_x(value: SupportsFloat | SupportsIndex) None
Change the right X value of the controller’s joystick.
- Parameters:
value – the new value
- set_right_y(value: SupportsFloat | SupportsIndex) None
Change the right Y value of the controller’s joystick.
- Parameters:
value – the new value
- set_stadia_button(value: bool) None
Change the value of the stadia button on the controller.
- Parameters:
value – the new value
- set_x_button(value: bool) None
Change the value of the X button on the controller.
- Parameters:
value – the new value
- set_y_button(value: bool) None
Change the value of the Y button on the controller.
- Parameters:
value – the new value