Commit | Line | Data |
---|---|---|
3dae12cf CZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
3 | import edu.wpi.first.wpilibj.DigitalInput; | |
4 | import edu.wpi.first.wpilibj.buttons.Button; | |
5 | ||
6 | public class DigitalButton extends Button { | |
7 | DigitalInput button; | |
8 | ||
9 | public DigitalButton(DigitalInput input) { | |
10 | button = input; | |
11 | } | |
12 | ||
13 | @Override | |
14 | public boolean get() { | |
15 | return button.get(); | |
16 | } | |
17 | ||
18 | } |