xr.tool
This package holds more than this page lists. See all of its files in its world.
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