Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit9a85df95a3

README.md

xr

Inject the state of an XR hand controller, where the headset runtime's action set enters the engine. The pad, the turning, the pointer ray and xr.controller follow it exactly as they follow a held controller, for as long as the XR session holds input focus.

tools.use("inputSim", "xr", "left_hand", "thumbstick", { 0, 1 })   -- walk forward
tools.use("inputSim", "xr", "right_hand", "thumbstick", { 1, 0 })  -- flick right: one snap step
tools.use("inputSim", "xr", "right_hand", "thumbstick", { 0, 0 })
tools.use("inputSim", "xrOff")                                 -- hand every control back