java.lang.Object
org.firstinspires.ftc.teamcode.framework.ctlpad.primitives.axes.ButtonAsAxis
All Implemented Interfaces:
Axis

public class ButtonAsAxis extends Object implements Axis
Makes a physical gamepad button act as an axis.
  • Constructor Details

    • ButtonAsAxis

      public ButtonAsAxis(Button button)
      Pass in an existing Button
    • ButtonAsAxis

      public ButtonAsAxis(Button button, double scalingFactor)
      In practice, the scaling factor is the output value.
  • Method Details

    • value

      public double value()
      If the button is pressed, report 1. Otherwise, report 0.
      Specified by:
      value in interface Axis