Пример #1
0
    // --------------------
    // VIBRATION
    // --------------------

    /// <summary>
    /// Vibrate a gamepad. Default duration and intensity can be tweaked in settings.
    /// </summary>
    public void Vibrate()
    {
        vibration.Vibrate(
            hSettings.leftVibrationIntensity,
            hSettings.rightVibrationIntensity,
            hSettings.vibrationDuration);
    }
Пример #2
0
    // --------------------
    // VIBRATION
    // --------------------


    /// <summary>
    /// Vibrate a gamepad for duration seconds. Default intensity can be tweaked in hinput settings.
    /// </summary>
    public void Vibrate(double duration)
    {
        vibration.Vibrate(duration);
    }