init.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. return {
  2. tag = 'modules',
  3. summary = 'Connects to VR hardware.',
  4. description = [[
  5. The `lovr.headset` module is where all the magical VR functionality is. With it, you can access
  6. connected VR hardware and get information about the available space the player has. Note that
  7. all units are reported in meters. Position `(0, 0, 0)` is on the floor in the center of the play
  8. area.
  9. ]],
  10. sections = {
  11. {
  12. name = 'Input',
  13. tag = 'input',
  14. description = [[
  15. Functions for accessing input devices, like controllers, hands, trackers, or gamepads.
  16. ]]
  17. },
  18. {
  19. name = 'Controller Models',
  20. tag = 'controller-models'
  21. },
  22. {
  23. name = 'Display',
  24. tag = 'headset',
  25. description = 'Functions that return information about the active head mounted display (HMD).'
  26. },
  27. {
  28. name = 'Play area',
  29. tag = 'playArea',
  30. description = [[
  31. Retrieve information about the size and shape of the room the player is in, and provides
  32. information about the "chaperone", a visual indicator that appears whenever a player is
  33. about to run into a wall.
  34. ]]
  35. },
  36. {
  37. name = 'Layers',
  38. tag = 'layers',
  39. description = 'TODO'
  40. },
  41. {
  42. name = 'Miscellaneous',
  43. tag = 'headset-misc',
  44. description = 'Functions that are internal or return information about the VR session.'
  45. }
  46. }
  47. }