C# 클래스 Nez.GamePadData

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

공개 프로퍼티들

프로퍼티 타입 설명
isLeftStickVertcialInverted bool
isRightStickVertcialInverted bool

공개 메소드들

메소드 설명
getLeftStick ( ) : Vector2
getLeftStick ( float deadzone ) : Vector2
getLeftTriggerRaw ( ) : float
getRightStick ( ) : Vector2
getRightStick ( float deadzone ) : Vector2
getRightTriggerRaw ( ) : float
isButtonDown ( Buttons button ) : bool

true the entire time the button is down

isButtonPressed ( Buttons button ) : bool

only true if down this frame

isButtonReleased ( Buttons button ) : bool

true only the frame the button is released

isConnected ( ) : bool

returns true if this game pad is connected

isLeftStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isLeftStickDownPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool

true only the frame the stick passes the deadzone in the direction

isLeftStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isLeftStickLeftPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool

true only the frame the stick passes the deadzone in the direction

isLeftStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isLeftStickRightPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool

true only the frame the stick passes the deadzone in the direction

isLeftStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isLeftStickUpPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool

true only the frame the stick passes the deadzone in the direction

isLeftTriggerDown ( float threshold = 0.2f ) : bool

true whenever the trigger is down past the threshold

isLeftTriggerPressed ( float threshold = 0.2f ) : bool

true only the frame that the trigger passed the threshold

isLeftTriggerReleased ( float threshold = 0.2f ) : bool

true the frame the trigger is released

isRightStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isRightStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isRightStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isRightStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
isRightTriggerDown ( float threshold = 0.2f ) : bool

true whenever the trigger is down past the threshold

isRightTriggerPressed ( float threshold = 0.2f ) : bool

true only the frame that the trigger passed the threshold

isRightTriggerReleased ( float threshold = 0.2f ) : bool

true the frame the trigger is released

setVibration ( float left, float right, float duration ) : void
stopVibration ( ) : void
update ( ) : void

비공개 메소드들

메소드 설명
GamePadData ( PlayerIndex playerIndex ) : Microsoft.Xna.Framework

메소드 상세

getLeftStick() 공개 메소드

public getLeftStick ( ) : Vector2
리턴 Vector2

getLeftStick() 공개 메소드

public getLeftStick ( float deadzone ) : Vector2
deadzone float
리턴 Vector2

getLeftTriggerRaw() 공개 메소드

public getLeftTriggerRaw ( ) : float
리턴 float

getRightStick() 공개 메소드

public getRightStick ( ) : Vector2
리턴 Vector2

getRightStick() 공개 메소드

public getRightStick ( float deadzone ) : Vector2
deadzone float
리턴 Vector2

getRightTriggerRaw() 공개 메소드

public getRightTriggerRaw ( ) : float
리턴 float

isButtonDown() 공개 메소드

true the entire time the button is down
public isButtonDown ( Buttons button ) : bool
button Buttons Button.
리턴 bool

isButtonPressed() 공개 메소드

only true if down this frame
public isButtonPressed ( Buttons button ) : bool
button Buttons Button.
리턴 bool

isButtonReleased() 공개 메소드

true only the frame the button is released
public isButtonReleased ( Buttons button ) : bool
button Buttons Button.
리턴 bool

isConnected() 공개 메소드

returns true if this game pad is connected
public isConnected ( ) : bool
리턴 bool

isLeftStickDown() 공개 메소드

public isLeftStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isLeftStickDownPressed() 공개 메소드

true only the frame the stick passes the deadzone in the direction
public isLeftStickDownPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float Deadzone.
리턴 bool

isLeftStickLeft() 공개 메소드

public isLeftStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isLeftStickLeftPressed() 공개 메소드

true only the frame the stick passes the deadzone in the direction
public isLeftStickLeftPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float Deadzone.
리턴 bool

isLeftStickRight() 공개 메소드

public isLeftStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isLeftStickRightPressed() 공개 메소드

true only the frame the stick passes the deadzone in the direction
public isLeftStickRightPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float Deadzone.
리턴 bool

isLeftStickUp() 공개 메소드

public isLeftStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isLeftStickUpPressed() 공개 메소드

true only the frame the stick passes the deadzone in the direction
public isLeftStickUpPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float Deadzone.
리턴 bool

isLeftTriggerDown() 공개 메소드

true whenever the trigger is down past the threshold
public isLeftTriggerDown ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

isLeftTriggerPressed() 공개 메소드

true only the frame that the trigger passed the threshold
public isLeftTriggerPressed ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

isLeftTriggerReleased() 공개 메소드

true the frame the trigger is released
public isLeftTriggerReleased ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

isRightStickDown() 공개 메소드

public isRightStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isRightStickLeft() 공개 메소드

public isRightStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isRightStickRight() 공개 메소드

public isRightStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isRightStickUp() 공개 메소드

public isRightStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool
deadzone float
리턴 bool

isRightTriggerDown() 공개 메소드

true whenever the trigger is down past the threshold
public isRightTriggerDown ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

isRightTriggerPressed() 공개 메소드

true only the frame that the trigger passed the threshold
public isRightTriggerPressed ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

isRightTriggerReleased() 공개 메소드

true the frame the trigger is released
public isRightTriggerReleased ( float threshold = 0.2f ) : bool
threshold float Threshold.
리턴 bool

setVibration() 공개 메소드

public setVibration ( float left, float right, float duration ) : void
left float
right float
duration float
리턴 void

stopVibration() 공개 메소드

public stopVibration ( ) : void
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

isLeftStickVertcialInverted 공개적으로 프로퍼티

toggles inverting the left sticks vertical value
public bool isLeftStickVertcialInverted
리턴 bool

isRightStickVertcialInverted 공개적으로 프로퍼티

toggles inverting the right sticks vertical value
public bool isRightStickVertcialInverted
리턴 bool