Phaser API Documentation

  Version: 

Member of: Phaser.Device

Input

Description:

Determines the input support of the browser running this Phaser Game instance. These values are read-only and populated during the boot sequence of the game. They are then referenced by internal game systems and are available for you to access via this.sys.game.device.input from within any Scene.

Properties:
name type description
wheelType string

The newest type of Wheel/Scroll event supported: 'wheel', 'mousewheel', 'DOMMouseScroll'

gamepads boolean

Is navigator.getGamepads available?

mspointer boolean

Is mspointer available?

touch boolean

Is touch available?

Type:
object
Since: 3.0.0
Source: src/device/Input.js (Line 9)