瀏覽代碼

Pinch is mapped to trigger;

bjorn 3 年之前
父節點
當前提交
640464d933
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      api/lovr/headset/getAxis.lua
  2. 1 0
      api/lovr/headset/isDown.lua

+ 2 - 0
api/lovr/headset/getAxis.lua

@@ -32,6 +32,8 @@ return {
   notes = [[
     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.
   ]],
   related = {
     'DeviceAxis',

+ 1 - 0
api/lovr/headset/isDown.lua

@@ -24,6 +24,7 @@ return {
       ]]
     }
   },
+  notes = 'When hand tracking is active, pinching will be mapped to the `trigger` button.',
   related = {
     'DeviceButton',
     'lovr.headset.wasPressed',