diff --git a/wpilibc/src/main/native/include/frc/XboxController.h b/wpilibc/src/main/native/include/frc/XboxController.h index 8aa2d5b35b..3ca2f4b66f 100644 --- a/wpilibc/src/main/native/include/frc/XboxController.h +++ b/wpilibc/src/main/native/include/frc/XboxController.h @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -232,7 +232,6 @@ class XboxController : public GenericHID { */ bool GetStartButtonReleased(); - private: enum class Button { kBumperLeft = 5, kBumperRight = 6, diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/XboxController.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/XboxController.java index 79d80e6165..7f8dc63244 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/XboxController.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/XboxController.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */ +/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ @@ -21,7 +21,7 @@ public class XboxController extends GenericHID { /** * Represents a digital button on an XboxController. */ - private enum Button { + public enum Button { kBumperLeft(5), kBumperRight(6), kStickLeft(9), @@ -34,7 +34,7 @@ public class XboxController extends GenericHID { kStart(8); @SuppressWarnings({"MemberName", "PMD.SingularField"}) - private final int value; + public final int value; Button(int value) { this.value = value;