GetBinding
functionimplementedavailable in: camelot
Returns the name and keys for a binding by index.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
index | number | index of the binding to query, from 1 to GetNumBindings(). |
alwaysIncludeGamepad | boolean? | If gamepad support is disabled, then gamepad bindings are only returned if this is true. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | command | string | Command this binding will perform (e.g. MOVEFORWARD). For well-behaved bindings, a human-readable description is stored in the _G["BINDING_NAME_" .. command] global variable. |
| 2 | category | string | Category this binding was declared in (e.g. BINDING_HEADER_MOVEMENT). For well-behaved bindings, a human-readable title is stored in the _G[category] global variable. |
| 3 | key | string? | Key combination this binding is bound to (e.g. W, CTRL-F). key1 and key2 can be nil if there is nothing bound to the command. |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.