SteamControllerSim
- class wpilib.simulation.SteamControllerSim(*args, **kwargs)
Bases:
GenericHIDSimClass to control a simulated Steam controller.
Overloaded function.
__init__(self: wpilib.simulation._simulation.SteamControllerSim, joystick: wpilib._wpilib.SteamController) -> None
Constructs from a SteamController object.
- Parameters:
joystick – controller to simulate
__init__(self: wpilib.simulation._simulation.SteamControllerSim, 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_dpad_down_button(value: bool) None
Change the value of the Dpad Down button on the controller.
- Parameters:
value – the new value
- set_dpad_left_button(value: bool) None
Change the value of the Dpad Left button on the controller.
- Parameters:
value – the new value
- set_dpad_right_button(value: bool) None
Change the value of the Dpad Right button on the controller.
- Parameters:
value – the new value
- set_dpad_up_button(value: bool) None
Change the value of the Dpad Up 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_grip_touch_button(value: bool) None
Change the value of the Left Grip Touch button on the controller.
- Parameters:
value – the new value
- set_left_paddle1_button(value: bool) None
Change the value of the Left Paddle 1 button on the controller.
- Parameters:
value – the new value
- set_left_paddle2_button(value: bool) None
Change the value of the Left Paddle 2 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_stick_touch_button(value: bool) None
Change the value of the Left Stick Touch button on the controller.
- Parameters:
value – the new value
- set_left_touchpad_button(value: bool) None
Change the value of the Left Touchpad button on the controller.
- Parameters:
value – the new value
- set_left_trigger(value: SupportsFloat | SupportsIndex) None
Change the Left Trigger value of the controller.
- Parameters:
value – the new value
- set_left_x(value: SupportsFloat | SupportsIndex) None
Change the Left X value of the controller.
- Parameters:
value – the new value
- set_left_y(value: SupportsFloat | SupportsIndex) None
Change the Left Y value of the controller.
- Parameters:
value – the new value
Change the value of the Menu button on the controller.
- Parameters:
value – the new value
- set_qam_button(value: bool) None
Change the value of the QAM button on the controller.
- 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_grip_touch_button(value: bool) None
Change the value of the Right Grip Touch button on the controller.
- Parameters:
value – the new value
- set_right_paddle1_button(value: bool) None
Change the value of the Right Paddle 1 button on the controller.
- Parameters:
value – the new value
- set_right_paddle2_button(value: bool) None
Change the value of the Right Paddle 2 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_stick_touch_button(value: bool) None
Change the value of the Right Stick Touch button on the controller.
- Parameters:
value – the new value
- set_right_touchpad_button(value: bool) None
Change the value of the Right Touchpad button on the controller.
- Parameters:
value – the new value
- set_right_trigger(value: SupportsFloat | SupportsIndex) None
Change the Right Trigger value of the controller.
- Parameters:
value – the new value
- set_right_x(value: SupportsFloat | SupportsIndex) None
Change the Right X value of the controller.
- Parameters:
value – the new value
- set_right_y(value: SupportsFloat | SupportsIndex) None
Change the Right Y value of the controller.
- Parameters:
value – the new value
- set_steam_button(value: bool) None
Change the value of the Steam button on the controller.
- Parameters:
value – the new value
- set_view_button(value: bool) None
Change the value of the View 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