Свойство | Тип | Описание | |
---|---|---|---|
isLeftStickVertcialInverted | bool | ||
isRightStickVertcialInverted | bool |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
GamePadData ( PlayerIndex playerIndex ) : Microsoft.Xna.Framework |
public getLeftStick ( float deadzone ) : Vector2 | ||
deadzone | float | |
Результат | Vector2 |
public getRightStick ( float deadzone ) : Vector2 | ||
deadzone | float | |
Результат | Vector2 |
public isButtonDown ( Buttons button ) : bool | ||
button | Buttons | Button. |
Результат | bool |
public isButtonPressed ( Buttons button ) : bool | ||
button | Buttons | Button. |
Результат | bool |
public isButtonReleased ( Buttons button ) : bool | ||
button | Buttons | Button. |
Результат | bool |
public isLeftStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isLeftStickDownPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
Результат | bool |
public isLeftStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isLeftStickLeftPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
Результат | bool |
public isLeftStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isLeftStickRightPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
Результат | bool |
public isLeftStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isLeftStickUpPressed ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | Deadzone. |
Результат | bool |
public isLeftTriggerDown ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public isLeftTriggerPressed ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public isLeftTriggerReleased ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public isRightStickDown ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isRightStickLeft ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isRightStickRight ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isRightStickUp ( float deadzone = Input.DEFAULT_DEADZONE ) : bool | ||
deadzone | float | |
Результат | bool |
public isRightTriggerDown ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public isRightTriggerPressed ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public isRightTriggerReleased ( float threshold = 0.2f ) : bool | ||
threshold | float | Threshold. |
Результат | bool |
public setVibration ( float left, float right, float duration ) : void | ||
left | float | |
right | float | |
duration | float | |
Результат | void |
public bool isLeftStickVertcialInverted | ||
Результат | bool |