Exemple #1
0
            internal static unsafe bool Invoke(EControllerHand Hand, EMLControllerHapticPattern HapticPattern, EMLControllerHapticIntensity Intensity)
            {
                long *p = stackalloc long[] { 0L, 0L };
                byte *b = (byte *)p;

                *(b + 0) = (byte)Hand;
                *(b + 1) = (byte)HapticPattern;
                *(b + 2) = (byte)Intensity;
                Main.GetProcessEvent(MagicLeapControllerFunctionLibrary.DefaultObject, PlayControllerHapticFeedback_ptr, new IntPtr(p));;
                return(*((bool *)(b + 3)));
            }
        }
 ///<summary>Play haptic feedback on the controller.</summary>
 ///<remarks>
 ///@param Hand Controller to play the haptic feedback on.
 ///@param HapticPattern Pattern to play on the controller.
 ///@param Intensity Intensity to play on the controller.
 ///@return True if the command to play the haptic feedback was successfully sent to the controller, false otherwise.
 ///</remarks>
 public static bool PlayControllerHapticFeedback(EControllerHand Hand, EMLControllerHapticPattern HapticPattern, EMLControllerHapticIntensity Intensity) =>
 MagicLeapControllerFunctionLibrary_methods.PlayControllerHapticFeedback_method.Invoke(Hand, HapticPattern, Intensity);