Progetto H — API Reference API & Scripting Documentation
Event Client

Input.KeyPress

A keyboard key has been pressed

Syntax

Lua
Input.Subscribe("KeyPress", function(key_name, delta)
    -- il tuo codice
end)

Arguments

Name Type Default Description
key_name string The key pressed
delta optional float? The amount depressed in case of this is an Axis input

Returns

  • boolean Return false to block it