phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
http://phaser.io
MIT License
1.34k stars 491 forks source link

Gamepad Unplug Error #638

Closed Weedshaker closed 5 years ago

Weedshaker commented 5 years ago

Describe the changes below: When Gamepad got unplugged it sometimes got an buttons of undefined Error. In January we fixed the timestamp issue... but that hasn't solved it completely. I now ran the game with this proposed change for quite a while and no Error on unplug happened so far.

samme commented 5 years ago

Any problems since with this change?

Weedshaker commented 5 years ago

nope, it has been working well for me so far. you can test it here: https://tarutarolegends.com/