Files
wow_Meta/api/IsMouseButtonDown.lua
2024-12-16 13:13:08 +01:00

11 lines
495 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@param button 5 or Button5
---@param 1 or LeftButton
---@param 2 or RightButton
---@param 3 or MiddleButton
---@param 4 or Button4
---@param 5 or Button5
---@return 1nil isDown
---Returns whether a given mouse button is held down. If no button is specified, returns 1 if any mouse button is held down.
function IsMouseButtonDown(button, 1 or LeftButton, 2 or RightButton, 3 or MiddleButton, 4 or Button4, 5 or Button5) end