mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Fixed Gamepad issue that incorrectly checked non-webkit prefix gamepads.
This commit is contained in:
parent
cd963242cd
commit
f007a77f3d
2 changed files with 2 additions and 1 deletions
|
@ -69,6 +69,7 @@ Version 2.0.6 - "Jornhill" - -in development-
|
|||
|
||||
* Sprite.alive property now explicitly defined on the Sprite prototype (thanks @lewster32, #841)
|
||||
* BitmapData.resize now properly updates the baseTexture and texture dimensions.
|
||||
* Fixed Gamepad issue that incorrectly checked non-webkit prefix gamepads.
|
||||
|
||||
### Migration Guide
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ Phaser.Gamepad.prototype = {
|
|||
*/
|
||||
_pollGamepads: function () {
|
||||
|
||||
var rawGamepads = navigator.getGamepads || (navigator.webkitGetGamepads && navigator.webkitGetGamepads()) || navigator.webkitGamepads;
|
||||
var rawGamepads = navigator.getGamepads() || (navigator.webkitGetGamepads && navigator.webkitGetGamepads()) || navigator.webkitGamepads;
|
||||
|
||||
if (rawGamepads)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue