Method WasButtonCombinationJustEntered
WasButtonCombinationJustEntered(Button[])
Gets whether a specific sequence of Buttons has been pressed.
Declaration
public static bool WasButtonCombinationJustEntered(params Button[] buttons)
Parameters
| Type | Name | Description |
|---|---|---|
| Button[] | buttons | The sequence of Buttons in the order the user should enter them in-game. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
There must be between 6 and 29 inclusive Buttons otherwise an System.ArgumentException is thrown. It only works for GamePad inputs. The in-game cheat combinations use the same system.