Java 类edu.wpi.first.wpilibj.buttons.InternalButton 实例源码

项目:wpilib-java    文件:ButtonTest.java   
public void setup() {
    button1 = new InternalButton();
    button2 = new InternalButton();
}
项目:MecanumDrivetrain    文件:OI.java   
public OI() {
    xbox = new XboxController(RobotMap.xboxController);

    toggleDrive = new JoystickButton(xbox, RobotMap.toggleDrive);

    toggleDrive.whenPressed(new ToggleDrive());

    togglePolar = new InternalButton();

    SmartDashboard.putData("Drive Mode", toggleDrive);
    togglePolar.whenPressed(new ToggleDrive());

}