프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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
|
public FlxGamepad ( PlayerIndex IndexOfPlayer ) : System | ||
IndexOfPlayer | PlayerIndex | |
리턴 | System |
public justPressed ( Buttons Button ) : bool | ||
Button | Buttons | Buttons Button |
리턴 | bool |
public vibrate ( float Duration = 0.5f ) : void | ||
Duration | float | The length in seconds the vibration should last |
리턴 | void |
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 |
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 |