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