Home

CustomInputEvent

Called when a CustomInputPrototype is activated.

Event Data

Examples

-- This will be raised when a custom input with the name "my-potato-control" and action "lua" is pressed
script.on_event("my-potato-control", function(event)
  game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
end)