C# 클래스 Fusion.Drivers.Input.Gamepad

파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
IsKeyPressed ( GamepadButtons button ) : bool

SetVibration ( float leftMotor, float rightMotor ) : void

Sets vibration

보호된 메소드들

메소드 설명
Gamepad ( int index ) : System

UpdateState ( ) : void

Updates controller state

비공개 메소드들

메소드 설명
GetGamePad ( int playerIndex ) : Gamepad

Gets gamepad state.

GetStickDirection ( short sX, short sY, short threshold ) : System.Vector2

Update ( ) : void

메소드 상세

Gamepad() 보호된 메소드

protected Gamepad ( int index ) : System
index int
리턴 System

IsKeyPressed() 공개 메소드

public IsKeyPressed ( GamepadButtons button ) : bool
button GamepadButtons
리턴 bool

SetVibration() 공개 메소드

Sets vibration
public SetVibration ( float leftMotor, float rightMotor ) : void
leftMotor float
rightMotor float
리턴 void

UpdateState() 보호된 메소드

Updates controller state
protected UpdateState ( ) : void
리턴 void