Browse Source

Fix lovr.headset.update return;

bjorn 3 weeks ago
parent
commit
b5de534cdc
2 changed files with 8 additions and 2 deletions
  1. 7 1
      api/init.lua
  2. 1 1
      api/lovr/headset/update.lua

+ 7 - 1
api/init.lua

@@ -24346,7 +24346,13 @@ return {
           variants = {
           variants = {
             {
             {
               arguments = {},
               arguments = {},
-              returns = {}
+              returns = {
+                {
+                  name = "dt",
+                  type = "number",
+                  description = "The delta time since the last frame.  This is the same value returned by `lovr.headset.getDeltaTime`, and is used by boot.lua."
+                }
+              }
             }
             }
           }
           }
         },
         },

+ 1 - 1
api/lovr/headset/update.lua

@@ -19,7 +19,7 @@ return {
   variants = {
   variants = {
     {
     {
       arguments = {},
       arguments = {},
-      returns = {}
+      returns = { 'dt' }
     }
     }
   },
   },
   related = {
   related = {