Utils
Public Methods
InputDevice FindMagicLeapDevice
Returns valid Magic Leap input device for provided InputDeviceCharacteristics, InputDevice.isValid . If there is none matching device the returned gonna be set as false.
public static InputDevice FindMagicLeapDevice(
InputDeviceCharacteristics inputDeviceCharacteristics
)
Parameters
Type | Name | Description |
---|---|---|
InputDeviceCharacteristics | inputDeviceCharacteristics |
void PredictSnapshot
Instructs the input subsystem to use MLPerceptionGetPerdictedSnapshot by default.
public static void PredictSnapshot(
long timestamp,
bool predictSnapshots
)
Parameters
Type | Name | Description |
---|---|---|
long | timestamp | Time representing the time in ms for which to predict poses (the max value is 100 ms). This timestamp typically comes from out_frame_info.predicted_display_time. |
bool | predictSnapshots | Boolean representing whether or not to predict the snapshot. |
void ResetSnapshotPrediction
Reset the snapshot state of the subsystem to before prediction. Use this to cleanup after PredictSnapshot
public static void ResetSnapshotPrediction()