new Input(game)
Phaser.Input is the Input Manager for all types of Input across Phaser, including mouse, keyboard, touch and MSPointer.
The Input manager is updated automatically by the core game loop.
Parameters
Name | Type | Description |
---|---|---|
game | Phaser.Game | Current game instance. |
- Source code: input/Input.js (Line 15)
Please login to continue.