diff --git a/mouse.press.md b/mouse.press.md new file mode 100644 index 0000000..75e5a7f --- /dev/null +++ b/mouse.press.md @@ -0,0 +1,15 @@ +# mouse.press(btn) +Retorna si el botó especificat acaba de ser premut. + +### Paràmetres +* btn — Quín botó (mouse.LEFT, mouse.MIDDLE o mouse.RIGHT). + +### Torna +Un booleà indicant si s'ha produït un “press”. + +### Exemple +``` +if mouse.press(mouse.LEFT) then + print("Click detectat") +end +```