C# Class Fusion.Drivers.Input.Gamepad

Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Méthode Description
IsKeyPressed ( GamepadButtons button ) : bool

SetVibration ( float leftMotor, float rightMotor ) : void

Sets vibration

Méthodes protégées

Méthode Description
Gamepad ( int index ) : System

UpdateState ( ) : void

Updates controller state

Private Methods

Méthode Description
GetGamePad ( int playerIndex ) : Gamepad

Gets gamepad state.

GetStickDirection ( short sX, short sY, short threshold ) : System.Vector2

Update ( ) : void

Method Details

Gamepad() protected méthode

protected Gamepad ( int index ) : System
index int
Résultat System

IsKeyPressed() public méthode

public IsKeyPressed ( GamepadButtons button ) : bool
button GamepadButtons
Résultat bool

SetVibration() public méthode

Sets vibration
public SetVibration ( float leftMotor, float rightMotor ) : void
leftMotor float
rightMotor float
Résultat void

UpdateState() protected méthode

Updates controller state
protected UpdateState ( ) : void
Résultat void