diff options
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. --- --- |