API IsMouseButtonDown

From Wowpedia
Jump to: navigation, search

Returns whether a particular mouse button is currently being held down.

isDown = IsMouseButtonDown("buttonName")

Arguments

buttonName 
String - identifier of the button to check, e.g "LeftButton", "RightButton", "MiddleButton", "BUTTON4"

Returns

isDown 
Flag - 1 if the queried mouse button is held down, nil otherwise.