Package com.pocolifo.robobase.control
Class Pressable
java.lang.Object
com.pocolifo.robobase.control.Pressable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pressable
Creates aPressable
.- 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
-