Method | Description | |
---|---|---|
Evaluate ( |
Evaluates the action against a given InputState.
|
|
InputAction ( Buttons buttons, Keys keys, bool newPressOnly ) : System |
Initializes a new InputAction.
|
public Evaluate ( |
||
state | The InputState to test for the action. | |
controllingPlayer | PlayerIndex | The player to test, or null to allow any player. |
player | PlayerIndex | If controllingPlayer is null, this is the player that performed the action. |
return | 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. |
return | System |