C# 클래스 ControllerLinOSX, Coliseo

상속: Controller
파일 보기 프로젝트 열기: lmucs/Coliseo

공개 메소드들

메소드 설명
FixedUpdate ( ) : void

Must be called each frame to ensure accurate reading of *(Down|Up)

GetBumper ( uint bumper ) : bool

Returns true while the specified /bumper/ is held down.

GetBumperDown ( uint bumper ) : bool

Returns true during the frame the user pressed the given /bumper/.

GetBumperUp ( uint bumper ) : bool

Returns true during the frame the user released the given /bumper/.

GetButton ( uint button ) : bool

Returns true while the specified /button/ is held down.

GetButtonDown ( uint button ) : bool

Returns true during the frame the user pressed the given /button/.

GetButtonUp ( uint button ) : bool

Returns true during the frame the user released the given /button/.

GetDPad ( uint direction ) : bool

Returns true while the specified /direction/ is held down.

GetDPadDown ( uint direction ) : bool

Returns true during the frame the user pressed the given /direction/.

GetDPadUp ( uint direction ) : bool

Returns true during the frame the user released the given /direction/.

GetStick ( uint stick ) : Vector2

Returns the values of the axes of the specified /stick/.

GetTrigger ( uint trigger ) : bool

Returns true if the specified /trigger/ is fully pressed.

GetTriggerDown ( uint trigger ) : bool

Returns true during the frame the user fully pressed the given /trigger/.

GetTriggerUp ( uint trigger ) : bool

Returns true during the frame the user fully released the given /trigger/.

IsConnected ( ) : bool

Returns true if a controller is connected.

vibrate ( uint motor, float intensity ) : void

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.

메소드 상세

FixedUpdate() 공개 메소드

Must be called each frame to ensure accurate reading of *(Down|Up)
public FixedUpdate ( ) : void
리턴 void

GetBumper() 공개 메소드

Returns true while the specified /bumper/ is held down.
public GetBumper ( uint bumper ) : bool
bumper uint
리턴 bool

GetBumperDown() 공개 메소드

Returns true during the frame the user pressed the given /bumper/.
public GetBumperDown ( uint bumper ) : bool
bumper uint
리턴 bool

GetBumperUp() 공개 메소드

Returns true during the frame the user released the given /bumper/.
public GetBumperUp ( uint bumper ) : bool
bumper uint
리턴 bool

GetButton() 공개 메소드

Returns true while the specified /button/ is held down.
public GetButton ( uint button ) : bool
button uint
리턴 bool

GetButtonDown() 공개 메소드

Returns true during the frame the user pressed the given /button/.
public GetButtonDown ( uint button ) : bool
button uint
리턴 bool

GetButtonUp() 공개 메소드

Returns true during the frame the user released the given /button/.
public GetButtonUp ( uint button ) : bool
button uint
리턴 bool

GetDPad() 공개 메소드

Returns true while the specified /direction/ is held down.
public GetDPad ( uint direction ) : bool
direction uint
리턴 bool

GetDPadDown() 공개 메소드

Returns true during the frame the user pressed the given /direction/.
public GetDPadDown ( uint direction ) : bool
direction uint
리턴 bool

GetDPadUp() 공개 메소드

Returns true during the frame the user released the given /direction/.
public GetDPadUp ( uint direction ) : bool
direction uint
리턴 bool

GetStick() 공개 메소드

Returns the values of the axes of the specified /stick/.
public GetStick ( uint stick ) : Vector2
stick uint
리턴 Vector2

GetTrigger() 공개 메소드

Returns true if the specified /trigger/ is fully pressed.
public GetTrigger ( uint trigger ) : bool
trigger uint
리턴 bool

GetTriggerDown() 공개 메소드

Returns true during the frame the user fully pressed the given /trigger/.
public GetTriggerDown ( uint trigger ) : bool
trigger uint
리턴 bool

GetTriggerUp() 공개 메소드

Returns true during the frame the user fully released the given /trigger/.
public GetTriggerUp ( uint trigger ) : bool
trigger uint
리턴 bool

IsConnected() 공개 메소드

Returns true if a controller is connected.
public IsConnected ( ) : bool
리턴 bool

vibrate() 공개 메소드

Sets the vibration intensity (0f-1f) of the motor specified by /motor/.
public vibrate ( uint motor, float intensity ) : void
motor uint
intensity float
리턴 void