Skip to main content
Version: 12 Dec 2024

NativeBindings

Public Methods​

MLResult.Code MLHeadTrackingGetStaticData​

Returns static information about the Head Tracker

public MLResult.Code MLHeadTrackingGetStaticData(
ulong handle,
ref MLHeadTrackingStaticData data
)

Parameters

TypeNameDescription
ulonghandleA handle to the tracker retireved by GetHeadTrackerHandle()
ref MLHeadTrackingStaticDatadataTarget to populate the data about that Head Tracker

Returns: MLResult.Result will be MLResult.Code.InvalidParam if failed to receive static data due to an invalid input parameter. MLResult.Result will be MLResult.Code.Ok if successfully received static data. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed to receive static data due to an unknown error.


bool TryGetMapEvents​

public static bool TryGetMapEvents(
InputDevice device,
out MLHeadTracking.MapEvents mapEvents
)

Parameters

TypeNameDescription
InputDevicedevice
out MLHeadTracking.MapEventsmapEventsA set of all types of map events that can occur that a developer may have to handle.

bool TryGetState​

public static bool TryGetState(
InputDevice device,
out MLHeadTracking.State state
)

Parameters

TypeNameDescription
InputDevicedevice
out MLHeadTracking.StatestateA structure containing information on the current state of the Head Tracking system.

bool TryGetStateEx​

public static bool TryGetStateEx(
InputDevice device,
out MLHeadTracking.StateEx state
)

Parameters

TypeNameDescription
InputDevicedevice
out MLHeadTracking.StateExstateA structure containing information on the current state of the Head Tracking system.