Wikia

WoWWiki

API GetMouseButtonClicked

Talk0
102,216pages on
this wiki
Revision as of 19:08, March 14, 2010 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetMouseButtonClicked

Returns the name of the button responsible causing the OnClick handler to fire.

buttonName = GetMouseButtonClicked();

Returns Edit

buttonName 
String - name of the button responsible for the innermost OnClick event. For example, "LeftButton"

Details Edit

  • The buttonName return value may be an arbitrary string (as the Button:Click method accepts arbitrary arguments).
  • If there are multiple OnClick handler dispatches on the call stack, information about the innermost one is returned.

Around Wikia's network

Random Wiki