summaryrefslogtreecommitdiff
path: root/meta/3rd/lovr/library/lovr.headset.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-11 17:45:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-11 17:45:18 +0800
commite069d28762467969596a66ace8b5cde34427c8a0 (patch)
treea882fdbe4a918e1ae075f148dadcf08addaa76f4 /meta/3rd/lovr/library/lovr.headset.lua
parent669073e384f22c9bae84fa38ffb75fe046a11491 (diff)
downloadlua-language-server-e069d28762467969596a66ace8b5cde34427c8a0.zip
update submodules
Diffstat (limited to 'meta/3rd/lovr/library/lovr.headset.lua')
-rw-r--r--meta/3rd/lovr/library/lovr.headset.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/3rd/lovr/library/lovr.headset.lua b/meta/3rd/lovr/library/lovr.headset.lua
index 218b70b9..0b70a3ba 100644
--- a/meta/3rd/lovr/library/lovr.headset.lua
+++ b/meta/3rd/lovr/library/lovr.headset.lua
@@ -56,6 +56,8 @@ function lovr.headset.getAngularVelocity(device) end
---### NOTE:
---The axis values will be between 0 and 1 for 1D axes, and between -1 and 1 for each component of a multidimensional axis.
---
+---When hand tracking is active, pinch strength will be mapped to the `trigger` axis.
+---
---@param device lovr.Device # The device.
---@param axis lovr.DeviceAxis # The axis.
function lovr.headset.getAxis(device, axis) end
@@ -491,6 +493,10 @@ function lovr.headset.getViewPose(view) end
---
---Returns whether a button on a device is pressed.
---
+---
+---### NOTE:
+---When hand tracking is active, pinching will be mapped to the `trigger` button.
+---
---@param device lovr.Device # The device.
---@param button lovr.DeviceButton # The button.
---@return boolean down # Whether the button on the device is currently pressed, or `nil` if the device does not have the specified button.
@@ -679,7 +685,7 @@ function lovr.headset.wasReleased(device, button) end
---
---| '"foot/right"'
---
----A device used as a camera in the scene.
+---A camera device, often used for recording "mixed reality" footage.
---
---| '"camera"'
---