Pressable

A pressable input source that stores it's own state State gets updated by an InputSource class that contains the pressable

Constructors

this
this(T id)

Constructor for a pressable takes its id

Members

Functions

testAndRelease
bool testAndRelease()

Checks if this pressable is pressed If it is, it will mark it as released Returns whether this was actually pressed or not

Properties

isPressed
bool isPressed [@property getter]

Returns whether or not this pressable is currently being held

Variables

id
T id;

The identifier for the pressable

lastPressed
SysTime lastPressed;

The time at which this pressable was pressed

lastReleased
SysTime lastReleased;

The time at which this pressable was released

Meta