Returns which mouse button triggered the current script. If called in a line of execution that started with a click handler (OnMouseDown, OnMouseUp, OnClick, OnDoubleClick, PreClick, or PostClick), returns a string identifying which mouse button triggered the handler. Otherwise, returns nil.


See also Utility functions.

Signature:

button = GetMouseButtonClicked()

Returns:

  • button - Name of the mouse button that triggered the current script (string)