mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Swapped the order of the _pollGamepads gamepads check, to stop the Chrome 'webkitGamepads is deprecated' error in the console.
This commit is contained in:
parent
89cdaef84d
commit
928b883c17
2 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ Updated:
|
|||
* Removed State.destroy empty method and replaced with State.shutdown, as that is what the StateManager expects (fix #586)
|
||||
* P2.removeBody will check if the body is part of the world before removing, this avoids a TypeError from the p2 layer.
|
||||
* Tilemap.createFromObjects has a new parameter: adjustY, which is true by default. Because Tiled uses a bottom-left coordinate system Phaser used to set the Sprite anchor to 0,1 to compensate. If adjustY is true it now reduces the y value by the object height instead.
|
||||
* Swapped the order of the _pollGamepads gamepads check, to stop the Chrome 'webkitGamepads is deprecated' error in the console.
|
||||
|
||||
|
||||
TODO:
|
||||
|
|
|
@ -220,7 +220,7 @@ Phaser.Gamepad.prototype = {
|
|||
*/
|
||||
_pollGamepads: function () {
|
||||
|
||||
var rawGamepads = (navigator.webkitGetGamepads && navigator.webkitGetGamepads()) || navigator.webkitGamepads || navigator.getGamepads;
|
||||
var rawGamepads = navigator.getGamepads || (navigator.webkitGetGamepads && navigator.webkitGetGamepads()) || navigator.webkitGamepads;
|
||||
|
||||
if (rawGamepads)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue