C# Class fliXNA_xbox.FlxGamepad

Afficher le fichier Open project: jlorek/flxSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
buttons Buttons
leftAnalogX float
leftAnalogY float
leftTrigger float
rightAnalogX float
rightAnalogY float
rightTrigger float

Méthodes publiques

Méthode 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

Method Details

FlxGamepad() public méthode

public FlxGamepad ( PlayerIndex IndexOfPlayer ) : System
IndexOfPlayer PlayerIndex
Résultat System

justPressed() public méthode

Returrns true if the specified button was just pressed
public justPressed ( Buttons Button ) : bool
Button Buttons Buttons Button
Résultat bool

justReleased() public méthode

Returrns true if the specified button was just released
public justReleased ( Buttons button ) : bool
button Buttons
Résultat bool

leftAnalogPushedDown() public méthode

Returns true if the Left Analog is pushed down by any amount
public leftAnalogPushedDown ( ) : bool
Résultat bool

leftAnalogPushedLeft() public méthode

Returns true if the Left Analog is pushed left by any amount
public leftAnalogPushedLeft ( ) : bool
Résultat bool

leftAnalogPushedRight() public méthode

Returns true if the Left Analog is pushed right by any amount
public leftAnalogPushedRight ( ) : bool
Résultat bool

leftAnalogPushedUp() public méthode

Returns true if the Left Analog is pushed up by any amount
public leftAnalogPushedUp ( ) : bool
Résultat bool

leftAnalogStill() public méthode

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

pressed() public méthode

Returrns true if the specified button is held down
public pressed ( Buttons button ) : bool
button Buttons
Résultat bool

rightAnalogPushedDown() public méthode

Returns true if the Right Analog is pushed down by any amount
public rightAnalogPushedDown ( ) : bool
Résultat bool

rightAnalogPushedLeft() public méthode

Returns true if the Right Analog is pushed left by any amount
public rightAnalogPushedLeft ( ) : bool
Résultat bool

rightAnalogPushedRight() public méthode

Returns true if the Right Analog is pushed right by any amount
public rightAnalogPushedRight ( ) : bool
Résultat bool

rightAnalogPushedUp() public méthode

Returns true if the Right Analog is pushed up by any amount
public rightAnalogPushedUp ( ) : bool
Résultat bool

rightAnalogStill() public méthode

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

update() public méthode

public update ( ) : void
Résultat void

vibrate() public méthode

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

vibrate() public méthode

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
Résultat void

vibrate() public méthode

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
Résultat void

Property Details

buttons public_oe static_oe property

public static Buttons buttons
Résultat Buttons

leftAnalogX public_oe property

public float leftAnalogX
Résultat float

leftAnalogY public_oe property

public float leftAnalogY
Résultat float

leftTrigger public_oe property

public float leftTrigger
Résultat float

rightAnalogX public_oe property

public float rightAnalogX
Résultat float

rightAnalogY public_oe property

public float rightAnalogY
Résultat float

rightTrigger public_oe property

public float rightTrigger
Résultat float