nanos world API Reference Unofficial documentation
Static function Client Fast

Input.Bind

Binds a function to an Input defined using <code>Register</code> or from the game

Syntax

Lua
Input.Bind(binding_name, input_event, callback)

Parameters

Name Type Default Description
binding_name string The keybinding id
input_event InputEvent Which event to register (Released/Pressed)
callback function The function to trigger
Callback signature function(delta?)
  • delta? float