Méthode | Description | |
---|---|---|
Evaluate ( InputState state, System |
Evaluates the action against a given InputState.
|
|
InputAction ( Buttons buttons, Keys keys, bool newPressOnly ) : System |
Initializes a new InputAction.
|
public Evaluate ( InputState state, System |
||
state | InputState | The InputState to test for the action. |
controllingPlayer | System |
The player to test, or null to allow any player. |
player | PlayerIndex | If controllingPlayer is null, this is the player that performed the action. |
Résultat | bool |
public InputAction ( Buttons buttons, Keys keys, bool newPressOnly ) : System | ||
buttons | Buttons | An array of buttons that can trigger the action. |
keys | Keys | An array of keys that can trigger the action. |
newPressOnly | bool | Whether the action only occurs on the first press of one of the buttons/keys, /// false if it occurs each frame one of the buttons/keys is down. |
Résultat | System |