Function InputEvent.isPressed

Returns true if this input event is pressed. Not relevant for events of type InputEventMouseMotion or InputEventScreenDrag.

bool isPressed() nothrow @nogc const;