WoW API: GetBindingFromClick

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetBindingFromClick

Gets the binding action from a key or button press.

command = GetBindingFromClick(keyOrButton)

Arguments[edit]

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

Returns[edit]

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