Button.pressed
bool pressed() const nothrow @nogcChecks if the button is currently pressed.
Alias for value property for readability.
Returns
true if pressed
void pressed(bool state) nothrow @nogcSets whether the button is pressed.
Alias for value property for readability.
Parameters
state | true to press, false to release |