SimulatedMotionControllerData.Update Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.