Pārlūkot izejas kodu

Update headset devices/buttons/axes;

bjorn 1 mēnesi atpakaļ
vecāks
revīzija
df3d86152b

+ 14 - 2
api/init.lua

@@ -25159,6 +25159,10 @@ return {
               name = "keyboard",
               description = "A tracked keyboard."
             },
+            {
+              name = "stylus",
+              description = "A tracked pen or pointer."
+            },
             {
               name = "eye/left",
               description = "The left eye."
@@ -25199,6 +25203,10 @@ return {
             {
               name = "grip",
               description = "A grip button or grab gesture (1D)."
+            },
+            {
+              name = "nib",
+              description = "The pressure sensitivity of the nib (tip) of a `stylus` device."
             }
           }
         },
@@ -25217,6 +25225,10 @@ return {
               name = "thumbstick",
               description = "The thumbstick."
             },
+            {
+              name = "thumbrest",
+              description = "The thumbrest."
+            },
             {
               name = "touchpad",
               description = "The touchpad."
@@ -25246,8 +25258,8 @@ return {
               description = "The Y button."
             },
             {
-              name = "proximity",
-              description = "The proximity sensor on a headset."
+              name = "nib",
+              description = "The nib (tip) of the `stylus` device."
             }
           }
         },

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

@@ -119,6 +119,10 @@ return {
       name = 'keyboard',
       description = 'A tracked keyboard.'
     },
+    {
+      name = 'stylus',
+      description = 'A tracked pen or pointer.'
+    },
     {
       name = 'eye/left',
       description = 'The left eye.'

+ 4 - 0
api/lovr/headset/DeviceAxis.lua

@@ -17,6 +17,10 @@ return {
     {
       name = 'grip',
       description = 'A grip button or grab gesture (1D).'
+    },
+    {
+      name = 'nib',
+      description = 'The pressure sensitivity of the nib (tip) of a `stylus` device.'
     }
   },
   related = {

+ 6 - 2
api/lovr/headset/DeviceButton.lua

@@ -10,6 +10,10 @@ return {
       name = 'thumbstick',
       description = 'The thumbstick.'
     },
+    {
+      name = 'thumbrest',
+      description = 'The thumbrest.'
+    },
     {
       name = 'touchpad',
       description = 'The touchpad.'
@@ -39,8 +43,8 @@ return {
       description = 'The Y button.'
     },
     {
-      name = 'proximity',
-      description = 'The proximity sensor on a headset.'
+      name = 'nib',
+      description = 'The nib (tip) of the `stylus` device.'
     }
   }
 }