|
@@ -35644,6 +35644,29 @@ return {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name = "hasKeyRepeat",
|
|
|
|
+ summary = "Check if key repeat is enabled.",
|
|
|
|
+ description = "Returns whether key repeat is enabled.",
|
|
|
|
+ key = "lovr.system.hasKeyRepeat",
|
|
|
|
+ module = "lovr.system",
|
|
|
|
+ notes = "Key repeat is disabled by default.",
|
|
|
|
+ related = {
|
|
|
|
+ "lovr.keypressed"
|
|
|
|
+ },
|
|
|
|
+ variants = {
|
|
|
|
+ {
|
|
|
|
+ arguments = {},
|
|
|
|
+ returns = {
|
|
|
|
+ {
|
|
|
|
+ name = "enabled",
|
|
|
|
+ type = "boolean",
|
|
|
|
+ description = "Whether key repeat is enabled."
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name = "isKeyDown",
|
|
name = "isKeyDown",
|
|
summary = "Get the state of a key.",
|
|
summary = "Get the state of a key.",
|
|
@@ -35809,6 +35832,29 @@ return {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name = "setKeyRepeat",
|
|
|
|
+ summary = "Enable or disable key repeat.",
|
|
|
|
+ description = "Enables or disables key repeat.",
|
|
|
|
+ key = "lovr.system.setKeyRepeat",
|
|
|
|
+ module = "lovr.system",
|
|
|
|
+ notes = "Key repeat is disabled by default.",
|
|
|
|
+ related = {
|
|
|
|
+ "lovr.keypressed"
|
|
|
|
+ },
|
|
|
|
+ variants = {
|
|
|
|
+ {
|
|
|
|
+ arguments = {
|
|
|
|
+ {
|
|
|
|
+ name = "enable",
|
|
|
|
+ type = "boolean",
|
|
|
|
+ description = "Whether key repeat should be enabled."
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ returns = {}
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name = "wasKeyPressed",
|
|
name = "wasKeyPressed",
|
|
summary = "Check if a key was pressed this frame.",
|
|
summary = "Check if a key was pressed this frame.",
|