C_KeyBindings
namespaceavailable in: camelotStatus in wowlua
11 functions: 1 implemented, 3 recorded, 7 guessed. 4 events, 3 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
ActivateBindingContext | Turns on a key binding context. · by wowlua(newContext: BindingContext) | guessed |
DeactivateBindingContext | Turns off a key binding context. · by wowlua(context: BindingContext) | guessed |
GetBindingByKey | Returns the command a key is bound to. · by wowlua(action: string, context: BindingContext?): string | implemented |
GetBindingContextForAction | Returns the binding context a command belongs to. · by wowlua(action: string): BindingContext? | guessed |
GetBindingIndex | Returns the index of a command in the key binding list. · by wowlua(action: string): number? | recorded |
GetCustomBindingType | Returns the type of a custom binding.(bindingIndex: number): CustomBindingType? | recorded |
GetSearchTagsForAction | Returns the search tags of a command in the key bindings list. · by wowlua(action: string): string[]? | recorded |
GetTurnStrafeStyle | Returns whether the movement keys turn or strafe the character. · by wowlua(): TurnStrafeStyle | guessed |
IsBindingContextActive | Whether a key binding context is on. · by wowlua(context: BindingContext): boolean | guessed |
SetTurnStrafeStyle | Can only set to Modern or Legacy.(style: TurnStrafeStyle) | guessed |
UpdateTurnStrafeBindingsForCharacter | Updates the character's movement key bindings to the chosen turn or strafe style. · by wowlua() | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
BINDINGS_LOADED | no payload | implemented |
MODIFIER_STATE_CHANGED | key: string, down: number | implemented |
NOTIFY_TURN_STRAFE_CHANGE | no payload | not implemented |
UPDATE_BINDINGS | no payload | implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("NOTIFY_TURN_STRAFE_CHANGE").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (KeyBindings system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.