Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Works in chrome 54 breaks in chrome 55 #16

Open
wdjungst opened this issue Dec 7, 2016 · 5 comments
Open

Works in chrome 54 breaks in chrome 55 #16

wdjungst opened this issue Dec 7, 2016 · 5 comments
Assignees
Labels

Comments

@wdjungst
Copy link

wdjungst commented Dec 7, 2016

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: {}
};

@wdjungst
Copy link
Author

wdjungst commented Dec 7, 2016

I should mention this is an issue with a dependency html5-gamepad

@dorsha
Copy link

dorsha commented Dec 11, 2016

i'm facing the same problem here:
https://incidents-attack.firebaseapp.com

Broke in chrome 55 update.
Works fine in FF and Safari.

image

@eschaefer
Copy link
Contributor

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

@kenwheeler
Copy link
Contributor

Great catch, removing gamepad bc of this

@kenwheeler kenwheeler self-assigned this Jan 25, 2017
@kenwheeler kenwheeler added the bug label Jan 25, 2017
@Swivelgames
Copy link

Swivelgames commented Apr 5, 2017

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants