Function InputSingleton.isActionJustPressed

Returns true when the user starts pressing the action event, meaning it's true only on the frame that the user pressed down the button. This is useful for code that needs to run only once when an action is pressed, instead of every frame while it's pressed.

bool isActionJustPressed (
  const(String) action
) nothrow @nogc const;