NativeBindings
Public Methods
MLResult.Code MLHeadTrackingGetStaticData
Returns static information about the Head Tracker
public MLResult.Code MLHeadTrackingGetStaticData(
ulong handle,
ref MLHeadTrackingStaticData data
)
Parameters
Type | Name | Description |
---|---|---|
ulong | handle | A handle to the tracker retireved by GetHeadTrackerHandle() |
ref MLHeadTrackingStaticData | data | Target 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
Type | Name | Description |
---|---|---|
InputDevice | device | |
out MLHeadTracking.MapEvents | mapEvents | A 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
Type | Name | Description |
---|---|---|
InputDevice | device | |
out MLHeadTracking.State | state | A 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
Type | Name | Description |
---|---|---|
InputDevice | device | |
out MLHeadTracking.StateEx | state | A structure containing information on the current state of the Head Tracking system. |