File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
source/docs/software/commandbased Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ The command-based HID classes contain factory methods returning a ``Trigger`` fo
21
21
22
22
.. code-tab :: java
23
23
24
- CommandXboxController exampleCommandController = new CommandXboxController(1); // Creates an CommandXboxController on port 1.
24
+ CommandXboxController exampleCommandController = new CommandXboxController(1); // Creates a CommandXboxController on port 1.
25
25
Trigger xButton = exampleCommandController.x(); // Creates a new Trigger object for the `X ` button on exampleCommandController
26
26
27
27
.. code-tab :: c++
28
28
29
- frc2::CommandXboxController exampleCommandController{1} // Creates an CommandXboxController on port 1
29
+ frc2::CommandXboxController exampleCommandController{1} // Creates a CommandXboxController on port 1
30
30
frc2::Trigger xButton = exampleCommandController.X() // Creates a new Trigger object for the `X ` button on exampleCommandController
31
31
32
32
JoystickButton
You can’t perform that action at this time.
0 commit comments