mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Make XBoxController Button enum public (#1823)
This allows using the raw button number in places where that is useful.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user