DeviceButton#buttonCode

buttonCode : number The buttoncode of this button if a Gamepad, or the DOM button event value if a Pointer. Source code: input/DeviceButton.js (Line 114)

DeviceButton#altKey

altKey : boolean True if the alt key was held down when this button was last pressed or released.Not supported on Gamepads. Source code: input/DeviceButton.js (Line 87)

Device.whenReady()

<static> whenReady(handler, context, nonPrimer) Add a device-ready handler and ensure the device ready sequence is started. Phaser.Device will not activate or initialize until at least one whenReady handler is added,which is normally done automatically be calling new Phaser.Game(..). The handler is invoked when the device is considered "ready", which may be immediatelyif the device is already "ready". See deviceReadyAt. Parameters Name Type Argument Default Description handler functi

Device.onInitialized

<static, nullable> onInitialized : Phaser.Signal This signal is dispatched after device initialization occurs but before any of the readycallbacks (see whenReady) have been invoked. Local "patching" for a particular device can/should be done in this event. Note: This signal is removed after the device has been readied; if a handler has not beenadded before new Phaser.Game(..) it is probably too late. Source code: utils/Device.js (Line 544)

Device#worker

worker : boolean Is worker available? Source code: utils/Device.js (Line 192)

Device#windowsPhone

windowsPhone : boolean Is running on a Windows Phone? Source code: utils/Device.js (Line 148)

Device#windows

windows : boolean Is running on windows? Source code: utils/Device.js (Line 142)

Device#webmVideo

webmVideo : boolean Can this device play webm video files? Source code: utils/Device.js (Line 442)

Device#webm

webm : boolean Can this device play webm files? Source code: utils/Device.js (Line 410)

Device#webGL

webGL : boolean Is webGL available? Source code: utils/Device.js (Line 168)