Advertisement

IsMouseButtonDown

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

Community content is available under CC BY-SA 3.0 unless otherwise noted.