InputEvent.isActionPressed

Returns true if the given action is being pressed (and is not an echo event for InputEventKey events, unless allow_echo is true). Not relevant for events of type InputEventMouseMotion or InputEventScreenDrag.

struct InputEvent
@nogc nothrow const
bool
isActionPressed
(
in String action
,
in bool allow_echo = false
)

Meta