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