EVENT_GLOBAL_MOUSE_DOWN = 65542
http://wiki.esoui.com/Events
every event listed on that page, has always as first argument his own eventCode.
So
- EVENT_GLOBAL_MOUSE_DOWN (integer button, bool ctrl, bool alt, bool shift, bool command)
should be used like that:
Lua Code:
local function OnGlobalMouseDown(eventCode, button, ctrl, alt, _shift, command)
d("Someone pressed a button")
end
EVENT_MANAGER:RegisterForEvent("MyAddOnName_EVENT_GLOBAL_MOUSE_DOWN", EVENT_GLOBAL_MOUSE_DOWN, OnGlobalMouseDown)