C_GamePad.ButtonBindingToIndex

From Warcraft Wiki
Jump to navigation Jump to search

Converts the name of a keybinding to its assigned gamepad button index. Returns nil if no gamepad button is assigned to the requested keybinding.

buttonIndex = C_GamePad.ButtonBindingToIndex(bindingName)

Arguments

bindingName
string

Returns

buttonIndex
number?

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Added.