C# Class Indiefreaks.Xna.Input.Vibration

Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
LinearFalloff ( Vibration vibration ) : float

Delegate to apply a linear falloff to the vibration frequency

LinearRamp ( Vibration vibration ) : float

Delegate to apply a linear ramp to the vibration frequency

Vibration ( Motor targetMotor, float frequency, float duration ) : System

Initializes a new instance of the Vibration class.

Vibration ( Motor targetMotor, float frequency, float duration, float>.Func modifier ) : System

Initializes a new instance of the Vibration class.

Private Methods

Méthode Description
Update ( long dt ) : void

Updates the vibration.

Method Details

LinearFalloff() public static méthode

Delegate to apply a linear falloff to the vibration frequency
public static LinearFalloff ( Vibration vibration ) : float
vibration Vibration The vibration.
Résultat float

LinearRamp() public static méthode

Delegate to apply a linear ramp to the vibration frequency
public static LinearRamp ( Vibration vibration ) : float
vibration Vibration The vibration.
Résultat float

Vibration() public méthode

Initializes a new instance of the Vibration class.
public Vibration ( Motor targetMotor, float frequency, float duration ) : System
targetMotor Motor The target motor
frequency float The motor frequency.
duration float The duration of the vibration
Résultat System

Vibration() public méthode

Initializes a new instance of the Vibration class.
public Vibration ( Motor targetMotor, float frequency, float duration, float>.Func modifier ) : System
targetMotor Motor The target motor
frequency float The motor frequency.
duration float The duration of the vibration
modifier float>.Func Frequency modifier delegate
Résultat System