Skip to main content
Member of ML.SDK.MLGrab
Method

HandInput MLGrab.CaptureInput()

 HandInput MLGrab.CaptureInput();

Returns

HandInput

Captured hand input. Null if the local player was not grabbing it.

Summary

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.

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.

See ML.SDK.MLGrab.ReleaseInput