View Single Post
04/08/14, 06:02 PM   #5
Cr4x
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
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:
  1. local function OnGlobalMouseDown(eventCode, button, ctrl, alt, _shift, command)
  2.     d("Someone pressed a button")
  3. end
  4.  
  5. EVENT_MANAGER:RegisterForEvent("MyAddOnName_EVENT_GLOBAL_MOUSE_DOWN", EVENT_GLOBAL_MOUSE_DOWN, OnGlobalMouseDown)
  Reply With Quote