public static SendControllerVibe Create(VibePattern vibePattern, VibeIntensity vibeIntensity)
 {
     return(new SendControllerVibe
     {
         baseCommand = new InputDeviceCommand(Type, kSize),
         pattern = (uint)vibePattern,
         intensity = (uint)vibeIntensity
     });
 }
Пример #2
0
    public void SendVibe()
    {
#if UNITY_MAGIC_LEAP
        VibePattern   pattern   = (VibePattern)vibePatternDropdown.value;
        VibeIntensity intensity = (VibeIntensity)vibeIntensityDropdown.value;

        MagicLeapController controller = InputSystem.GetDevice <MagicLeapController>();
        if (controller != null)
        {
            controller.StartVibe(pattern, intensity);
        }
#endif
    }
Пример #3
0
        //Need Discrete State for DOF and Type and CalibrationAccuracy

        public bool StartVibe(VibePattern pattern, VibeIntensity vibeIntensity)
        {
            var command = SendControllerVibe.Create(pattern, vibeIntensity);

            return(ExecuteCommand(ref command) >= 0);
        }