WoW:API GetBindingFromClick

From AddOn Studio
Revision as of 17:58, 28 February 2010 by WoWWiki>Fodaro (My first page creation, so not sure this'll quite work properly.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Gets the binding action from a key or button press.

command = GetBindingFromClick(keyOrButton)

Arguments

keyOrButton
String - The mouse button or key that was pressed.

Returns

command
String - The command that keyOrButton is bound to. This is the same type that is passed to RunBinding.