Button.pressed

bool pressed() const nothrow @nogc

Checks if the button is currently pressed.

Alias for value property for readability.

Returns

true if pressed
void pressed(bool state) nothrow @nogc

Sets whether the button is pressed.

Alias for value property for readability.

Parameters

statetrue to press, false to release