v0.13.8

C_GamePad.ButtonBindingToIndex

functionguessedavailable in: camelot

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

signaturewowlua
function C_GamePad.ButtonBindingToIndex(    bindingName: string): number?

Parameters

nametype
bindingNamestring

Returns

buttonIndex · number?

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (GamePad system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.