Event
Input.KeyPress
A keyboard key has been pressed
Syntax
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