|
@@ -1,21 +1,23 @@
|
|
|
return {
|
|
|
- tag = "headset",
|
|
|
- summary = "Set the display refresh rate.",
|
|
|
- description = "Sets the display refresh rate, in Hz.",
|
|
|
- module = "lovr.headset",
|
|
|
+ tag = 'headset',
|
|
|
+ summary = 'Set the display refresh rate.',
|
|
|
+ description = 'Sets the display refresh rate, in Hz.',
|
|
|
arguments = {
|
|
|
{
|
|
|
- name = "frequency",
|
|
|
- type = "number",
|
|
|
- description = "The refresh rate to set, in Hz",
|
|
|
+ name = 'frequency',
|
|
|
+ type = 'number',
|
|
|
+ description = 'The new refresh rate, in Hz.',
|
|
|
}
|
|
|
},
|
|
|
returns = {
|
|
|
{
|
|
|
- name = "success",
|
|
|
- type = "boolean",
|
|
|
- description = "Whether the display refresh rate was successfully set."
|
|
|
+ name = 'success',
|
|
|
+ type = 'boolean',
|
|
|
+ description = 'Whether the display refresh rate was successfully set.'
|
|
|
}
|
|
|
},
|
|
|
- notes = "Changing the display refresh-rate also changes the frequency of lovr.update() and lovr.draw() as they depend on the display frequency."
|
|
|
+ notes = [[
|
|
|
+ Changing the display refresh-rate also changes the frequency of lovr.update() and lovr.draw() as
|
|
|
+ they depend on the display frequency.
|
|
|
+ ]]
|
|
|
}
|