C# Class Sharpex2D.Input.Gamepad

显示文件 Open project: ThuCommix/Sharpex2D

Public Methods

Method 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 method

Gets the BatteryLevel.
public static BatteryLevel ( PlayerIndex playerIndex ) : BatteryLevel
playerIndex PlayerIndex The PlayerIndex.
return BatteryLevel

GetState() public static method

Gets the GamepadState.
public static GetState ( PlayerIndex playerIndex ) : GamepadState
playerIndex PlayerIndex The PlayerIndex.
return GamepadState

IsAvailable() public static method

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

Vibrate() public static method

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.
return void