C# Class Sharpex2D.Input.Implementation.XInput.Gamepad

Inheritance: IGamepad
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode Description
GetCapabilities ( ) : XInputCapabilities

Gets the Capabilities.

GetState ( ) : GamepadState

Gets the State.

Initialize ( ) : void

Initializes the Device.

Retrieve ( int index ) : Gamepad

Retrieves the XBoxController.

ToString ( ) : string

Converts the object to string.

Update ( GameTime gameTime ) : void

Updates the object.

Vibrate ( float leftMotor, float rightMotor, float length ) : void

Vibrates the controller.

Private Methods

Méthode Description
Gamepad ( ) : System

Initializes a new Gamepad class.

Gamepad ( int playerIndex ) : System

Initializes a new Gamepad class.

UpdateBatteryState ( ) : void

Updates the BatteryState.

Vibrate ( XInputVibration strength, float length ) : void

Vibrates the controller.

Method Details

GetCapabilities() public méthode

Gets the Capabilities.
public GetCapabilities ( ) : XInputCapabilities
Résultat XInputCapabilities

GetState() public méthode

Gets the State.
public GetState ( ) : GamepadState
Résultat GamepadState

Initialize() public méthode

Initializes the Device.
public Initialize ( ) : void
Résultat void

Retrieve() public static méthode

Retrieves the XBoxController.
public static Retrieve ( int index ) : Gamepad
index int The Index.
Résultat Gamepad

ToString() public méthode

Converts the object to string.
public ToString ( ) : string
Résultat string

Update() public méthode

Updates the object.
public Update ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
Résultat void

Vibrate() public méthode

Vibrates the controller.
public Vibrate ( float leftMotor, float rightMotor, float length ) : void
leftMotor float The LeftMotor.
rightMotor float The RightMotor.
length float The Length.
Résultat void