UIElement:unbind_input
Removes a previously bound input callback.
Usage
ui_element:unbind_input(input)
Arguments
| Name | Type | Description |
|---|---|---|
input | string | Input action whose bindings to clear. |
Examples
local menu = crystal.Overlay:new();
menu:bind_input("+ui_ok", "always", nil, function()
print("Binding Executed");
end);
menu:unbind_input("+ui_ok");
menu:action_pressed(1, "ui_ok"); -- Nothing is printed