Binds
Fields
This class has no fields.
Functions
Register
Hotkey will work only on server
Name | Type | Description |
---|---|---|
label | string | Bind name |
type | e_bind_types | Bind type |
callback | function | Bind callback; only for simple type |
Return value
Name | Type | Description |
---|---|---|
bind | Bind* | Bind pointer |
Binds.Register('hotkey1', e_bind_types.simple, function()
print("key pressed!")
end)