|
@@ -25070,6 +25070,31 @@ return {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name = "isKeyDown",
|
|
|
+ summary = "Get the state of a key.",
|
|
|
+ description = "Returns whether a key on the keyboard is pressed.",
|
|
|
+ key = "lovr.system.isKeyDown",
|
|
|
+ module = "lovr.system",
|
|
|
+ variants = {
|
|
|
+ {
|
|
|
+ arguments = {
|
|
|
+ {
|
|
|
+ name = "key",
|
|
|
+ type = "KeyCode",
|
|
|
+ description = "The key."
|
|
|
+ }
|
|
|
+ },
|
|
|
+ returns = {
|
|
|
+ {
|
|
|
+ name = "down",
|
|
|
+ type = "boolean",
|
|
|
+ description = "Whether the key is currently pressed."
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
name = "requestPermission",
|
|
|
summary = "Request permission to use a feature.",
|