C# 클래스 Sharpex2D.Input.Gamepad

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
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.

메소드 상세

BatteryLevel() 공개 정적인 메소드

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

GetState() 공개 정적인 메소드

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

IsAvailable() 공개 정적인 메소드

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

Vibrate() 공개 정적인 메소드

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.
리턴 void