Editar

Compartilhar via


SimulatedMotionControllerData.Update Method

Definition

Replace the motion controller data with the given values.

public:
 bool Update(bool isTrackedNew, Microsoft::MixedReality::Toolkit::Input::SimulatedMotionControllerButtonState buttonStateNew, Microsoft::MixedReality::Toolkit::Input::SimulatedMotionControllerData::MotionControllerPoseUpdater ^ updater);
public bool Update (bool isTrackedNew, Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerButtonState buttonStateNew, Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerData.MotionControllerPoseUpdater updater);
member this.Update : bool * Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerButtonState * Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerData.MotionControllerPoseUpdater -> bool
Public Function Update (isTrackedNew As Boolean, buttonStateNew As SimulatedMotionControllerButtonState, updater As SimulatedMotionControllerData.MotionControllerPoseUpdater) As Boolean

Parameters

isTrackedNew
Boolean

True if the motion controller is currently tracked.

buttonStateNew
SimulatedMotionControllerButtonState

New set of states of buttons on the motion controller.

updater
SimulatedMotionControllerData.MotionControllerPoseUpdater

Delegate to function that updates the position and rotation of the motion controller. The delegate is only used when the motion controller is tracked.

Returns

True if the motion controller data has been changed.

Remarks

The timestamp of the motion controller data will be the current time, see DateTime.UtcNow.

Applies to