mouse_button
Check whether a mouse button is held.
Available as mouse_button after import_globals() or mv.input.mouse_button.
Parameters
name—"left","middle"or"right".
if mouse_button("left") then print("click")endRelated: mouse_position.
See the keyboard guide for more examples and limits.