RunBindingCommand
function · ui · primitive
- Address
0x4b7b50· 304 bytes, up to0x4b7c7f- Signature
bool __thiscall (CBindings *this, const char *name, bool isDown)- Meaning
- Runs a command's script for a press, or for a release when it has runOnUp
- Confidence
- verified, proof one
- Finding
- ui/keybindings#running-a-command
Finding: Running a command in ui: key bindings
0x4b7b50(name, isDown) finds the command by name in the second table (without case) and returns 0 for an
unknown name. A press always runs it. A release runs it only if the command has runOnUp, and otherwise does
nothing and returns 0. A run sets the global keystate to down or up, runs the command's compiled script
as client code, clears keystate and returns 1. Whether it runs on release belongs to the command, not to the key or the
event, and applies equally to keys, mouse buttons and the wheel.
The derivation is in the doc.
Callers 2
Callees 8
- SStrCmpI storm
- SStrHashHT storm
- lua_insert lua
- lua_pushnil lua
- lua_pushstring lua
- lua_settable lua
- FrameScript::GetContext ui
- FrameScriptCallFunction ui
Calls and jumps by a bare address, from tables/calls.tsv.