Lore archive · Warcraft Wiki, 2023 dump
API GetBinding
Last wiki revision 2023-09-19
Returns the name and keys for a binding by index. command, category, key1, key2, ... = GetBinding(index [, alwaysIncludeGamepad])
- index: - index of the binding to query, from 1 to GetNumBindings.
- alwaysIncludeGamepad: - If gamepad support is disabled, then gamepad bindings are only returned if this is.
- command: - Command this binding will perform (e.g. MOVEFORWARD). For well-behaved bindings, a human-readable description is stored in the global variable.
- category: - Category this binding was declared in (e.g. BINDING_HEADER_MOVEMENT). For well-behaved bindings, a human-readable title is stored in the global variable.
- key1, key2, ...: - Key combination this binding is bound to (e.g. W, CTRL-F). and can be nil if there is nothing bound to the command.
- Even though the default Key Binding window only shows up to two bindings for each command, it is actually possible to bind more using SetBinding, and this function will return all of the keys bound to the given command, not just the first two.
- GetBindingAction
- GetBindingKey
- GetBindingByKey
- Bindings.xml
Source
https://warcraft.wiki.gg/wiki/API_GetBinding · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.