diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 20:31:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 20:31:46 +0800 |
commit | 85d497ac617dcb629b991defc23540e9bfa34cbc (patch) | |
tree | 13a6f56fe09de0163ff94506c392e5d07de03f53 /meta/3rd/lovr/library/lovr.headset.lua | |
parent | 67815046d2345924123d290e2b0c01fb15a9a6bb (diff) | |
download | lua-language-server-85d497ac617dcb629b991defc23540e9bfa34cbc.zip |
build 3rd metas
Diffstat (limited to 'meta/3rd/lovr/library/lovr.headset.lua')
-rw-r--r-- | meta/3rd/lovr/library/lovr.headset.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/meta/3rd/lovr/library/lovr.headset.lua b/meta/3rd/lovr/library/lovr.headset.lua index 419a8180..fd6e9d63 100644 --- a/meta/3rd/lovr/library/lovr.headset.lua +++ b/meta/3rd/lovr/library/lovr.headset.lua @@ -7,7 +7,7 @@ --- ---Note that all units are reported in meters. --- ----Position `(0, 0, 0)` is the center of the play area. +---Position `(0, 0, 0)` is on the floor in the center of the play area. --- ---@class lovr.headset lovr.headset = {} @@ -123,6 +123,12 @@ function lovr.headset.getClipDistance() end function lovr.headset.getDisplayDimensions() end --- +---Returns a table with all the refresh rates supported by the headset display, in Hz. +--- +---@return table frequencies # A flat table of the refresh rates supported by the headset display, nil if not supported. +function lovr.headset.getDisplayFrequencies() end + +--- ---Returns the refresh rate of the headset display, in Hz. --- ---@return number frequency # The frequency of the display, or `nil` if I have no idea what it is. @@ -569,6 +575,17 @@ function lovr.headset.renderTo(callback) end function lovr.headset.setClipDistance(near, far) end --- +---Sets the display refresh rate, in Hz. +--- +--- +---### NOTE: +---Changing the display refresh-rate also changes the frequency of lovr.update() and lovr.draw() as they depend on the display frequency. +--- +---@param frequency number # The new refresh rate, in Hz. +---@return boolean success # Whether the display refresh rate was successfully set. +function lovr.headset.setDisplayFrequency(frequency) end + +--- ---Causes the device to vibrate with a custom strength, duration, and frequency, if possible. --- --- |