Skip to main content

MLGrab.CaptureInput()

Captures some of the user input to be used while the object is grabbed by local user. The default actions bind to captured controls disabled until the input released. The Input can be released by calling Release input, or dropping object automatically releases the input.

Returns:

typeDescription
HandInputCaptured hand input. Nil if the local player was not grabbing it.

Usage

---@type MLGrab
local mlgrab;


local val0 = mlgrab.CaptureInput()

Extra Detail

Controls which are captured depends on the client mode and the hand: VR Mode Left Hand: left joystick as Range and left joystick button as click. VR Mode Right Hand: right joystick as Range and right joystick button as click. Desktop Mode Left Hand: WASD as range and L_Shift as click. Desktop Mode Right Hand: Arrows as range and R_Shift as click.