From 33f6bf947efe178d269e89245612434a0b9300df Mon Sep 17 00:00:00 2001 From: Kiefer Date: Fri, 20 Mar 2020 01:23:33 -0500 Subject: [PATCH] DriverStation (Java): Make getStickButton functions public (#2424) getStickButtonPressed and getStickButtonReleased were public in C++ but not Java. --- .../src/main/java/edu/wpi/first/wpilibj/DriverStation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DriverStation.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DriverStation.java index 997fe2bc2f..7dfa2a959e 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DriverStation.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DriverStation.java @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------*/ -/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */ +/* Copyright (c) 2008-2020 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. */ @@ -340,7 +340,7 @@ public class DriverStation { * @param button The button index, beginning at 1. * @return Whether the joystick button was pressed since the last check. */ - boolean getStickButtonPressed(final int stick, final int button) { + public boolean getStickButtonPressed(final int stick, final int button) { if (button <= 0) { reportJoystickUnpluggedError("Button indexes begin at 1 in WPILib for C++ and Java\n"); return false; @@ -379,7 +379,7 @@ public class DriverStation { * @param button The button index, beginning at 1. * @return Whether the joystick button was released since the last check. */ - boolean getStickButtonReleased(final int stick, final int button) { + public boolean getStickButtonReleased(final int stick, final int button) { if (button <= 0) { reportJoystickUnpluggedError("Button indexes begin at 1 in WPILib for C++ and Java\n"); return false;