소스 검색

Add Device shorthands;

bjorn 6 년 전
부모
커밋
1018850ff5
2개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      api/init.lua
  2. 8 0
      api/lovr/headset/Device.lua

+ 8 - 0
api/init.lua

@@ -12742,6 +12742,14 @@ return {
               name = "hand/right",
               description = "The right controller."
             },
+            {
+              name = "left",
+              description = "A shorthand for hand/left."
+            },
+            {
+              name = "right",
+              description = "A shorthand for hand/right."
+            },
             {
               name = "eye/left",
               description = "The left eye."

+ 8 - 0
api/lovr/headset/Device.lua

@@ -20,6 +20,14 @@ return {
       name = 'hand/right',
       description = 'The right controller.'
     },
+    {
+      name = 'left',
+      description = 'A shorthand for hand/left.'
+    },
+    {
+      name = 'right',
+      description = 'A shorthand for hand/right.'
+    },
     {
       name = 'eye/left',
       description = 'The left eye.'