Skip to content

Commit f8fb069

Browse files
committed
Document lovr.headset.stop;
1 parent 7fa9cd7 commit f8fb069

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

api/lovr/headset/stop.lua

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
return {
2+
tag = 'headset-misc',
3+
summary = 'Stop the headset session.',
4+
description = [[
5+
Stops the headset session. This tears down the connection to the VR runtime and hardware.
6+
`lovr.draw` will instead start rendering to the desktop window, as though the headset module was
7+
disabled. However, certain information about the headset can still be queried, such as its
8+
name, supported passthrough modes, display size, etc. A headset session can be started later
9+
using `lovr.headset.start`.
10+
]],
11+
arguments = {},
12+
returns = {},
13+
variants = {
14+
{
15+
arguments = {},
16+
returns = {}
17+
}
18+
},
19+
notes = [[
20+
The headset module behaves in the following manner when there is no headset session:
21+
22+
- `lovr.headset.isActive` returns `false`.
23+
- `lovr.headset.getPass` returns `nil`.
24+
- All devices will be untracked.
25+
]],
26+
related = {
27+
'lovr.headset.start',
28+
'lovr.headset.isActive'
29+
}
30+
}

0 commit comments

Comments
 (0)