getDeltaTime.lua 608 B

123456789101112131415161718192021222324252627
  1. return {
  2. tag = 'headset-misc',
  3. summary = 'Get the predicted delta time.',
  4. description = [[
  5. Returns the headset delta time, which is the difference between the current and previous
  6. predicted display times. When the headset is active, this will be the `dt` value passed in to
  7. `lovr.update`.
  8. ]],
  9. arguments = {},
  10. returns = {
  11. dt = {
  12. type = 'number',
  13. description = 'The delta time.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = {},
  19. returns = { 'dt' }
  20. }
  21. },
  22. related = {
  23. 'lovr.headset.getTime',
  24. 'lovr.timer.getTime',
  25. 'lovr.timer.getDelta'
  26. }
  27. }