reset(hard)
Reset all of the Pointers and Input states.
The optional hard parameter will reset any events or callbacks that may be bound.
Input.reset is called automatically during a State change or if a game loses focus / visibility.
To control control the reset manually set Phaser.InputManager.resetLocked to true.
Parameters
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
hard | boolean | <optional> | false | A soft reset won't reset any events or callbacks that are bound. A hard reset will. |
- Source code: input/Input.js (Line 614)
Please login to continue.