internal static unsafe bool Invoke(EMLControllerTrackingMode TrackingMode) { long *p = stackalloc long[] { 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)TrackingMode; Main.GetProcessEvent(MagicLeapControllerFunctionLibrary.DefaultObject, SetControllerTrackingMode_ptr, new IntPtr(p));; return(*((bool *)(b + 1))); } }
///<summary>Set controller tracking mode.</summary> ///<remarks> ///@param TrackingMode Controller tracking mode. ///@return True if the command to set the tracking mode was successfully sent to the controller, false otherwise. ///</remarks> public static bool SetControllerTrackingMode(EMLControllerTrackingMode TrackingMode) => MagicLeapControllerFunctionLibrary_methods.SetControllerTrackingMode_method.Invoke(TrackingMode);