Property | Type | Description | |
---|---|---|---|
buttons | Buttons | ||
leftAnalogX | float | ||
leftAnalogY | float | ||
leftTrigger | float | ||
rightAnalogX | float | ||
rightAnalogY | float | ||
rightTrigger | float |
Method | Description | |
---|---|---|
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 | |
return | System |
public justPressed ( Buttons Button ) : bool | ||
Button | Buttons | Buttons Button |
return | bool |
public justReleased ( Buttons button ) : bool | ||
button | Buttons | |
return | bool |
public vibrate ( float Duration = 0.5f ) : void | ||
Duration | float | The length in seconds the vibration should last |
return | 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 |
return | 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 |
return | void |