react-game-kit
react-game-kit copied to clipboard
Works in chrome 54 breaks in chrome 55
Demo game played fine then I updated chrome and get this err: Cannot read property 'id' of null
function transformGamepad(threshold, gamepad) { var gp = { id: gamepad.id, <(----THIS gamepad is undefined buttons: {}, axes: {} };
I should mention this is an issue with a dependency html5-gamepad
i'm facing the same problem here: https://incidents-attack.firebaseapp.com
Broke in chrome 55 update. Works fine in FF and Safari.
I've removed gamepad support in my fork, and it at least runs now. Might help those of you who just need keyboard controls. https://github.com/eschaefer/react-game-kit/tree/feature/no-gamepad
Great catch, removing gamepad bc of this
@kenwheeler @eschaefer I noticed that the version of html5-gamepad
was pretty out of date. Did you guys try updating it first?
Current Version: v1.0.1
package.json Version: v0.1.4
https://www.npmjs.com/package/html5-gamepad