GetBindingFromClick

From Warcraft Wiki
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.