Class Pressable


  • public class Pressable
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get()
      Get the current toggled state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • get

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