Update key.down
@@ -2,14 +2,14 @@
|
||||
Retorna si la tecla de teclat especificada està actualment premuda.
|
||||
|
||||
### Paràmetres
|
||||
* key — Codi numèric de la tecla.
|
||||
* key — tecla a comprobar
|
||||
|
||||
### Torna
|
||||
Un booleà indicant si la tecla està premuda.
|
||||
|
||||
### Exemple
|
||||
```
|
||||
if key.down(32) then
|
||||
if key.down(key.SPACE) then
|
||||
print("Espai premut")
|
||||
end
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user