IsMouseButtonDown

From Warcraft Wiki
Jump to navigation Jump to search

Returns whether a mouse button is being held down.

isDown = IsMouseButtonDown([button])

Arguments

button
string? - Name of the button. If not passed, then it returns if any mouse button is pressed.
LeftButton, RightButton, MiddleButton, Button4, Button5

Returns

isDown
boolean - Returns whether the given mouse button is held down.

Patch changes

Bc icon.gif Patch 2.0.1 (2006-12-05): Added.