Class Pressable

java.lang.Object
com.pocolifo.robobase.control.Pressable

public class Pressable extends Object
  • Constructor Details

    • Pressable

      public Pressable(BoolSupplier currentState)
      Creates a Pressable.
      Parameters:
      currentState - A method to get the current state of something (like whether a gamepad button is pressed)
  • Method Details

    • get

      public boolean get()
      Get the current toggled state.
      Returns:
      The toggled state of this Toggleable