Bind
Fields
This class has no fields.
Enums
e_bind_types
Name | Value | Description |
---|---|---|
simple | 0 |
Accepts only callback when registering and do not have any modes |
multi | 1 |
May have additional modes like always on/toggle/disabled... |
e_bind_modes
Name | Value | Description |
---|---|---|
always_on | 0 |
|
on_key_down | 1 |
|
toggle | 2 |
|
disabled | 3 |
Functions
IsPressed
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
value | bool |
local hotkey = Binds.Register('enabled', e_bind_types.multi, e_bind_modes.always_on)
print(hotkey:IsPressed()) -- returns true