public void Vibrate(Thalmic.Myo.VibrationType vibrationType) { if (device != RayInputDevice.Myo) { InteractionSourceExtensions.StopHaptics(source); switch (vibrationType) { case Thalmic.Myo.VibrationType.Short: InteractionSourceExtensions.StartHaptics(source, 0.25f, 0.1f); break; case Thalmic.Myo.VibrationType.Medium: InteractionSourceExtensions.StartHaptics(source, 0.5f, 0.1f); break; case Thalmic.Myo.VibrationType.Long: InteractionSourceExtensions.StartHaptics(source, 0.75f, 0.1f); break; } } else { MyoPoseManager.Instance.Vibrate(vibrationType); } }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate(VibrationType type) { #if UNITY_EDITOR || !UNITY_IOS _myo.Vibrate(type); #else Thalmic.MyoBindings.myo_VibrateWithLength(identifier, (int)type); #endif }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate(VibrationType type) { #if UNITY_EDITOR _myo.Vibrate(type); #elif UNITY_IOS Thalmic.MyoBindings.myo_VibrateWithLength(identifier, (int)type); #elif UNITY_ANDROID ThalmicHub.VibrateForLength((int)type); #endif }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate (VibrationType type) { #if UNITY_EDITOR _myo.Vibrate (type); #elif UNITY_IOS Thalmic.MyoBindings.myo_VibrateWithLength(identifier, (int) type); #elif UNITY_ANDROID ThalmicHub.VibrateForLength((int)type); #endif }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate (VibrationType type) { _myo.Vibrate (type); }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate(VibrationType type) { _myo.Vibrate(type); }
public void Vibrate(Thalmic.Myo.VibrationType vibrationType) { thalmicMyo.Vibrate(vibrationType); }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate (VibrationType type) { print ("myo vibrate"); _myo.Vibrate (type); }
// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium. public void Vibrate(VibrationType type) { #if UNITY_EDITOR || !UNITY_IOS _myo.Vibrate (type); #else Thalmic.MyoBindings.myo_VibrateWithLength(identifier, (int) type); #endif }