C# 클래스 MrGravity.ControllerControl

Control interface for a controller
상속: IControlScheme
파일 보기 프로젝트 열기: DizWARE/Mr-Gravity

공개 메소드들

메소드 설명
ControlScheme ( ) : ControlSchemes

Gets the type of control scheme this is

IsAPressed ( bool held ) : bool

Checks to see if the control for A has been interacted with Only work when the button has just been pushed

IsBPressed ( bool held ) : bool

Checks to see if the control for B has been interacted with Only work when the button has just been pushed

IsBackPressed ( bool held ) : bool

Checks to see if the control for Select has been interacted with Only work when the button has just been pushed

IsDownPressed ( bool held ) : bool

Checks to see if the control for Down has been interacted with Only work when the button has just been pushed

IsHomePressed ( bool held ) : bool

Checks to see if the control for HOME has been interacted with Only work when the button has just been pushed

IsLeftPressed ( bool held ) : bool

Checks to see if the control for left has been interacted with Only work when the button has just been pushed

IsLeftShoulderPressed ( bool held ) : bool

Checks to see if the control for LS has been interacted with Only work when the button has just been pushed

IsLeftTriggerPressed ( bool held ) : bool

Checks to see if the control for LT has been interacted with Only work when the button has just been pushed

IsRightPressed ( bool held ) : bool

Checks to see if the control for Right has been interacted with Only work when the button has just been pushed

IsRightShoulderPressed ( bool held ) : bool

Checks to see if the control for RS has been interacted with Only work when the button has just been pushed

IsRightTriggerPressed ( bool held ) : bool

Checks to see if the control for RT has been interacted with Only work when the button has just been pushed

IsStartPressed ( bool held ) : bool

Checks to see if the control for Start has been interacted with Only work when the button has just been pushed

IsUpPressed ( bool held ) : bool

Checks to see if the control for Up has been interacted with Only work when the button has just been pushed

IsXPressed ( bool held ) : bool

Checks to see if the control for X has been interacted with Only work when the button has just been pushed

IsYPressed ( bool held ) : bool

Checks to see if the control for Y has been interacted with Only work when the button has just been pushed

비공개 메소드들

메소드 설명
IsPressed ( Buttons button, bool held ) : bool

Finds the first player index that is connected

IsPressed ( Buttons button, bool held, PlayerIndex playerIndex ) : bool

Checks to see if the given button is currently pressed

LeftThumbStickIsDown ( bool held ) : bool

Checks to see if the left thumbstick is currently Down

LeftThumbStickIsLeft ( bool held ) : bool

Checks to see if the left thumbstick is currently left

LeftThumbStickIsRight ( bool held ) : bool

Checks to see if the left thumbstick is currently right

LeftThumbStickIsUp ( bool held ) : bool

Checks to see if the left thumbstick is currently Up

메소드 상세

ControlScheme() 공개 메소드

Gets the type of control scheme this is
public ControlScheme ( ) : ControlSchemes
리턴 ControlSchemes

IsAPressed() 공개 메소드

Checks to see if the control for A has been interacted with Only work when the button has just been pushed
public IsAPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsBPressed() 공개 메소드

Checks to see if the control for B has been interacted with Only work when the button has just been pushed
public IsBPressed ( bool held ) : bool
held bool
리턴 bool

IsBackPressed() 공개 메소드

Checks to see if the control for Select has been interacted with Only work when the button has just been pushed
public IsBackPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsDownPressed() 공개 메소드

Checks to see if the control for Down has been interacted with Only work when the button has just been pushed
public IsDownPressed ( bool held ) : bool
held bool
리턴 bool

IsHomePressed() 공개 메소드

Checks to see if the control for HOME has been interacted with Only work when the button has just been pushed
public IsHomePressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsLeftPressed() 공개 메소드

Checks to see if the control for left has been interacted with Only work when the button has just been pushed
public IsLeftPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsLeftShoulderPressed() 공개 메소드

Checks to see if the control for LS has been interacted with Only work when the button has just been pushed
public IsLeftShoulderPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsLeftTriggerPressed() 공개 메소드

Checks to see if the control for LT has been interacted with Only work when the button has just been pushed
public IsLeftTriggerPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsRightPressed() 공개 메소드

Checks to see if the control for Right has been interacted with Only work when the button has just been pushed
public IsRightPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsRightShoulderPressed() 공개 메소드

Checks to see if the control for RS has been interacted with Only work when the button has just been pushed
public IsRightShoulderPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsRightTriggerPressed() 공개 메소드

Checks to see if the control for RT has been interacted with Only work when the button has just been pushed
public IsRightTriggerPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsStartPressed() 공개 메소드

Checks to see if the control for Start has been interacted with Only work when the button has just been pushed
public IsStartPressed ( bool held ) : bool
held bool
리턴 bool

IsUpPressed() 공개 메소드

Checks to see if the control for Up has been interacted with Only work when the button has just been pushed
public IsUpPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsXPressed() 공개 메소드

Checks to see if the control for X has been interacted with Only work when the button has just been pushed
public IsXPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool

IsYPressed() 공개 메소드

Checks to see if the control for Y has been interacted with Only work when the button has just been pushed
public IsYPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
리턴 bool