SwitchN64ControllerSim

class wpilib.simulation.SwitchN64ControllerSim(*args, **kwargs)

Bases: GenericHIDSim

Class to control a simulated SwitchN64 controller.

Overloaded function.

  1. __init__(self: wpilib.simulation._simulation.SwitchN64ControllerSim, joystick: wpilib._wpilib.SwitchN64Controller) -> None

Constructs from a SwitchN64Controller object.

Parameters:

joystick – controller to simulate

  1. __init__(self: wpilib.simulation._simulation.SwitchN64ControllerSim, 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_c_down_button(value: bool) None

Change the value of the C Down button on the controller.

Parameters:

value – the new value

set_c_left_button(value: bool) None

Change the value of the C Left button on the controller.

Parameters:

value – the new value

set_c_right_button(value: bool) None

Change the value of the C Right button on the controller.

Parameters:

value – the new value

set_c_up_button(value: bool) None

Change the value of the C Up button on the controller.

Parameters:

value – the new value

set_capture_button(value: bool) None

Change the value of the Capture 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_home_button(value: bool) None

Change the value of the Home button on the controller.

Parameters:

value – the new value

set_l_button(value: bool) None

Change the value of the L button on 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

set_r_button(value: bool) None

Change the value of the R button on the controller.

Parameters:

value – the new value

set_start_button(value: bool) None

Change the value of the Start button on the controller.

Parameters:

value – the new value

set_z_axis(value: SupportsFloat | SupportsIndex) None

Change the Z Axis value of the controller.

Parameters:

value – the new value

set_zr(value: SupportsFloat | SupportsIndex) None

Change the ZR value of the controller.

Parameters:

value – the new value