Function InputEventMouse.wasButtonJustPressed

Whether the given button was just pressed, i.e. it's last state was unpressed and is now pressed.

bool wasButtonJustPressed (
  MouseButton button
) @property const;