Property | Type | Description | |
---|---|---|---|
isLeftStickVertcialInverted | bool | ||
isRightStickVertcialInverted | bool |
Method | Description | |
---|---|---|
getLeftStick ( ) : Vector2 | ||
getLeftStick ( float deadzone ) : Vector2 | ||
getLeftTriggerRaw ( ) : float | ||
getRightStick ( ) : Vector2 | ||
getRightStick ( float deadzone ) : Vector2 | ||
getRightTriggerRaw ( ) : float | ||
isButtonDown ( Buttons button ) : bool |
true the entire time the button is down
|
|
isButtonPressed ( Buttons button ) : bool |
only true if down this frame
|
|
isButtonReleased ( Buttons button ) : bool |
true only the frame the button is released
|
|
isConnected ( ) : bool |
returns true if this game pad is connected
|
|
isLeftStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isLeftStickDownPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool |
true only the frame the stick passes the deadzone in the direction
|
|
isLeftStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isLeftStickLeftPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool |
true only the frame the stick passes the deadzone in the direction
|
|
isLeftStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isLeftStickRightPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool |
true only the frame the stick passes the deadzone in the direction
|
|
isLeftStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isLeftStickUpPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool |
true only the frame the stick passes the deadzone in the direction
|
|
isLeftTriggerDown ( float threshold = 0.2f ) : bool |
true whenever the trigger is down past the threshold
|
|
isLeftTriggerPressed ( float threshold = 0.2f ) : bool |
true only the frame that the trigger passed the threshold
|
|
isLeftTriggerReleased ( float threshold = 0.2f ) : bool |
true the frame the trigger is released
|
|
isRightStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isRightStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isRightStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isRightStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
isRightTriggerDown ( float threshold = 0.2f ) : bool |
true whenever the trigger is down past the threshold
|
|
isRightTriggerPressed ( float threshold = 0.2f ) : bool |
true only the frame that the trigger passed the threshold
|
|
isRightTriggerReleased ( float threshold = 0.2f ) : bool |
true the frame the trigger is released
|
|
setVibration ( float left, float right, float duration ) : void | ||
stopVibration ( ) : void | ||
update ( ) : void |
Method | Description | |
---|---|---|
GamePadData ( PlayerIndex playerIndex ) : Microsoft.Xna.Framework |
public getLeftStick ( float deadzone ) : Vector2 | ||
deadzone | float | |
return | Vector2 |
public getRightStick ( float deadzone ) : Vector2 | ||
deadzone | float | |
return | Vector2 |
public isButtonDown ( Buttons button ) : bool | ||
button | Buttons | Button. |
return | bool |
public isButtonPressed ( Buttons button ) : bool | ||
button | Buttons | Button. |
return | bool |
public isButtonReleased ( Buttons button ) : bool | ||
button | Buttons | Button. |
return | bool |
public isLeftStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isLeftStickDownPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
return | bool |
public isLeftStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isLeftStickLeftPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
return | bool |
public isLeftStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isLeftStickRightPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
return | bool |
public isLeftStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isLeftStickUpPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
return | bool |
public isLeftTriggerDown ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public isLeftTriggerPressed ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public isLeftTriggerReleased ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public isRightStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isRightStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isRightStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isRightStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
return | bool |
public isRightTriggerDown ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public isRightTriggerPressed ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public isRightTriggerReleased ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
return | bool |
public setVibration ( float left, float right, float duration ) : void | ||
left | float | |
right | float | |
duration | float | |
return | void |