C# 클래스 fliXNA_xbox.FlxGamepad

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

공개 프로퍼티들

프로퍼티 타입 설명
buttons Buttons
leftAnalogX float
leftAnalogY float
leftTrigger float
rightAnalogX float
rightAnalogY float
rightTrigger float

공개 메소드들

메소드 설명
FlxGamepad ( PlayerIndex IndexOfPlayer ) : System
justPressed ( Buttons Button ) : bool

Returrns true if the specified button was just pressed

justReleased ( Buttons button ) : bool

Returrns true if the specified button was just released

leftAnalogPushedDown ( ) : bool

Returns true if the Left Analog is pushed down by any amount

leftAnalogPushedLeft ( ) : bool

Returns true if the Left Analog is pushed left by any amount

leftAnalogPushedRight ( ) : bool

Returns true if the Left Analog is pushed right by any amount

leftAnalogPushedUp ( ) : bool

Returns true if the Left Analog is pushed up by any amount

leftAnalogStill ( ) : bool

Returns true if the Left Analog is centered and not being pushed in any direction

pressed ( Buttons button ) : bool

Returrns true if the specified button is held down

rightAnalogPushedDown ( ) : bool

Returns true if the Right Analog is pushed down by any amount

rightAnalogPushedLeft ( ) : bool

Returns true if the Right Analog is pushed left by any amount

rightAnalogPushedRight ( ) : bool

Returns true if the Right Analog is pushed right by any amount

rightAnalogPushedUp ( ) : bool

Returns true if the Right Analog is pushed up by any amount

rightAnalogStill ( ) : bool

Returns true if the Right Analog is centered and not being pushed in any direction

update ( ) : void
vibrate ( float Duration = 0.5f ) : void

Simple Controller vibration

vibrate ( float Duration = 0.5f, float Intensity = 0.15f ) : void

Simple Controller vibration

vibrate ( float Duration = 0.5f, float IntensityLeftMotor = 0.15f, float IntensityRightMotor = 0.15f, bool ShakeScreen = false ) : void

Simple Controller vibration

메소드 상세

FlxGamepad() 공개 메소드

public FlxGamepad ( PlayerIndex IndexOfPlayer ) : System
IndexOfPlayer PlayerIndex
리턴 System

justPressed() 공개 메소드

Returrns true if the specified button was just pressed
public justPressed ( Buttons Button ) : bool
Button Buttons Buttons Button
리턴 bool

justReleased() 공개 메소드

Returrns true if the specified button was just released
public justReleased ( Buttons button ) : bool
button Buttons
리턴 bool

leftAnalogPushedDown() 공개 메소드

Returns true if the Left Analog is pushed down by any amount
public leftAnalogPushedDown ( ) : bool
리턴 bool

leftAnalogPushedLeft() 공개 메소드

Returns true if the Left Analog is pushed left by any amount
public leftAnalogPushedLeft ( ) : bool
리턴 bool

leftAnalogPushedRight() 공개 메소드

Returns true if the Left Analog is pushed right by any amount
public leftAnalogPushedRight ( ) : bool
리턴 bool

leftAnalogPushedUp() 공개 메소드

Returns true if the Left Analog is pushed up by any amount
public leftAnalogPushedUp ( ) : bool
리턴 bool

leftAnalogStill() 공개 메소드

Returns true if the Left Analog is centered and not being pushed in any direction
public leftAnalogStill ( ) : bool
리턴 bool

pressed() 공개 메소드

Returrns true if the specified button is held down
public pressed ( Buttons button ) : bool
button Buttons
리턴 bool

rightAnalogPushedDown() 공개 메소드

Returns true if the Right Analog is pushed down by any amount
public rightAnalogPushedDown ( ) : bool
리턴 bool

rightAnalogPushedLeft() 공개 메소드

Returns true if the Right Analog is pushed left by any amount
public rightAnalogPushedLeft ( ) : bool
리턴 bool

rightAnalogPushedRight() 공개 메소드

Returns true if the Right Analog is pushed right by any amount
public rightAnalogPushedRight ( ) : bool
리턴 bool

rightAnalogPushedUp() 공개 메소드

Returns true if the Right Analog is pushed up by any amount
public rightAnalogPushedUp ( ) : bool
리턴 bool

rightAnalogStill() 공개 메소드

Returns true if the Right Analog is centered and not being pushed in any direction
public rightAnalogStill ( ) : bool
리턴 bool

update() 공개 메소드

public update ( ) : void
리턴 void

vibrate() 공개 메소드

Simple Controller vibration
public vibrate ( float Duration = 0.5f ) : void
Duration float The length in seconds the vibration should last
리턴 void

vibrate() 공개 메소드

Simple Controller vibration
public vibrate ( float Duration = 0.5f, float Intensity = 0.15f ) : void
Duration float The length in seconds the vibration should last
Intensity float The intensity of the vibration for both Motors
리턴 void

vibrate() 공개 메소드

Simple Controller vibration
public vibrate ( float Duration = 0.5f, float IntensityLeftMotor = 0.15f, float IntensityRightMotor = 0.15f, bool ShakeScreen = false ) : void
Duration float The length in seconds the vibration should last
IntensityLeftMotor float The intensity of the Left Motor vibration
IntensityRightMotor float The intensity of the Right Motor vibration
ShakeScreen bool Should the screen shake in unison with the controller vibration
리턴 void

프로퍼티 상세

buttons 공개적으로 정적으로 프로퍼티

public static Buttons buttons
리턴 Buttons

leftAnalogX 공개적으로 프로퍼티

public float leftAnalogX
리턴 float

leftAnalogY 공개적으로 프로퍼티

public float leftAnalogY
리턴 float

leftTrigger 공개적으로 프로퍼티

public float leftTrigger
리턴 float

rightAnalogX 공개적으로 프로퍼티

public float rightAnalogX
리턴 float

rightAnalogY 공개적으로 프로퍼티

public float rightAnalogY
리턴 float

rightTrigger 공개적으로 프로퍼티

public float rightTrigger
리턴 float