C# 클래스 Sharpex2D.Input.Implementation.XInput.Gamepad

상속: IGamepad
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

GetCapabilities() 공개 메소드

Gets the Capabilities.
public GetCapabilities ( ) : XInputCapabilities
리턴 XInputCapabilities

GetState() 공개 메소드

Gets the State.
public GetState ( ) : GamepadState
리턴 GamepadState

Initialize() 공개 메소드

Initializes the Device.
public Initialize ( ) : void
리턴 void

Retrieve() 공개 정적인 메소드

Retrieves the XBoxController.
public static Retrieve ( int index ) : Gamepad
index int The Index.
리턴 Gamepad

ToString() 공개 메소드

Converts the object to string.
public ToString ( ) : string
리턴 string

Update() 공개 메소드

Updates the object.
public Update ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
리턴 void

Vibrate() 공개 메소드

Vibrates the controller.
public Vibrate ( float leftMotor, float rightMotor, float length ) : void
leftMotor float The LeftMotor.
rightMotor float The RightMotor.
length float The Length.
리턴 void