Control

abstract class Control

This is the abstract class that all Controls extend. All controls have a state, and some way to detect whether their state just became true or just became false.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether the current boolean state just changed to false.

Link copied to clipboard

Whether the current boolean state just changed to true.

Link copied to clipboard

The current boolean state of this control.

Link copied to clipboard

Whether the current boolean state just changed.

Functions

Link copied to clipboard
abstract fun update()

Updates the current state and the rising, falling, and changed states. Further, schedules commands accordingly.