예제 #1
0
파일: hGamepad.cs 프로젝트: XaaK/PongBlast
    // --------------------
    // 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);
    }