C# Class Sharpex2D.Input.Gamepad

Afficher le fichier Open project: ThuCommix/Sharpex2D

Méthodes publiques

Méthode Description
BatteryLevel ( PlayerIndex playerIndex ) : BatteryLevel

Gets the BatteryLevel.

GetState ( PlayerIndex playerIndex ) : GamepadState

Gets the GamepadState.

IsAvailable ( PlayerIndex playerIndex ) : bool

A value indicating whether the Gamepad is available.

Vibrate ( PlayerIndex playerIndex, float left, float right, float length ) : void

Vibrates the Gamepad.

Method Details

BatteryLevel() public static méthode

Gets the BatteryLevel.
public static BatteryLevel ( PlayerIndex playerIndex ) : BatteryLevel
playerIndex PlayerIndex The PlayerIndex.
Résultat BatteryLevel

GetState() public static méthode

Gets the GamepadState.
public static GetState ( PlayerIndex playerIndex ) : GamepadState
playerIndex PlayerIndex The PlayerIndex.
Résultat GamepadState

IsAvailable() public static méthode

A value indicating whether the Gamepad is available.
public static IsAvailable ( PlayerIndex playerIndex ) : bool
playerIndex PlayerIndex The PlayerIndex.
Résultat bool

Vibrate() public static méthode

Vibrates the Gamepad.
public static Vibrate ( PlayerIndex playerIndex, float left, float right, float length ) : void
playerIndex PlayerIndex The PlayerIndex.
left float The Left.
right float The Right.
length float The Length.
Résultat void