Example #1
0
    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);
        }
    }
Example #2
0
    // 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
    }
Example #5
0
	// Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium.
	public void Vibrate (VibrationType type) {
		_myo.Vibrate (type);
	}
Example #6
0
 // Vibrate the Myo with the provided type of vibration, e.g. VibrationType.Short or VibrationType.Medium.
 public void Vibrate(VibrationType type)
 {
     _myo.Vibrate(type);
 }
Example #7
0
 public void Vibrate(Thalmic.Myo.VibrationType vibrationType)
 {
     thalmicMyo.Vibrate(vibrationType);
 }
Example #8
0
    // 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);
    }
Example #9
0
    // 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
    }