Class Pressable
A pressable input source that stores it's own state
State gets updated by an InputSource class that contains the pressable
Constructors
Name | Description |
this
|
Constructor for a pressable takes its id
|
Fields
Name | Type | Description |
id
|
T | The identifier for the pressable
|
lastPressed
|
SysTime | The time at which this pressable was pressed
|
lastReleased
|
SysTime | The time at which this pressable was released
|
Properties
Name | Type | Description |
isPressed [get]
|
bool | Returns whether or not this pressable is currently being held
|
Methods
Name | Description |
testAndRelease
|
Checks if this pressable is pressed
If it is, it will mark it as released
Returns whether this was actually pressed or not
|