xhookLua
Game

binds

The user's binds from Configs > Binds, read-only except for enabling.

Functions

binds.list

binds.list() -> table[]

Every bind with its mode, key and state.

Returns bind tables (see fields)

binds.is_active

binds.is_active(name) -> boolean
NameTypeDescription
namestringExact bind name.

Whether a bind is in effect now.

Returns true while forcing its values

false for unknown names; duplicates match the first.

binds.set_enabled

binds.set_enabled(name, on) -> boolean
NameType
namestring
onboolean

Enables or disables a bind.

Returns true if the bind was found

Fields

binds.list() entry

NameTypeDescription
namestring
modestring"hold", "toggle", "double_click", "weapon" or "condition".
keystringKey name; "" if none.
enabledbooleanBind is switched on.
activebooleanBind is forcing its values now.
targetsstring[]Values it sets, in features.* names.
binds ยท Lua API ยท xhook