Skip to content

Commit

Permalink
[wpilib] Fix Xbox/PS4 POV sim for port number constructors (#4548)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Nov 3, 2022
1 parent 102344e commit 1177a35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ PS4ControllerSim::PS4ControllerSim(const PS4Controller& joystick)
PS4ControllerSim::PS4ControllerSim(int port) : GenericHIDSim{port} {
SetAxisCount(6);
SetButtonCount(14);
SetPOVCount(1);
}

void PS4ControllerSim::SetLeftX(double value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ XboxControllerSim::XboxControllerSim(const XboxController& joystick)
XboxControllerSim::XboxControllerSim(int port) : GenericHIDSim{port} {
SetAxisCount(6);
SetButtonCount(10);
SetPOVCount(1);
}

void XboxControllerSim::SetLeftX(double value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public PS4ControllerSim(int port) {
super(port);
setAxisCount(6);
setButtonCount(14);
setPOVCount(1);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public XboxControllerSim(int port) {
super(port);
setAxisCount(6);
setButtonCount(10);
setPOVCount(1);
}

/**
Expand Down

0 comments on commit 1177a35

Please sign in to comment.