mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
Button Box Broken
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package frc4388.utility.controller;
|
||||
|
||||
import edu.wpi.first.wpilibj.GenericHID;
|
||||
|
||||
public class ButtonBox extends GenericHID {
|
||||
public ButtonBox(int port) {
|
||||
super(port);
|
||||
}
|
||||
public enum Button {
|
||||
kRightSwitch(1),
|
||||
kMiddleSwitch(2),
|
||||
kLeftSwitch(3),
|
||||
kRightButton(4),
|
||||
kLeftButton(5);
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public final int value;
|
||||
|
||||
Button(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user