stale
stale copied to clipboard
robhawkes: “GamePad API Demo” only uses vendor prefixes
URL: http://robhawkes.github.io/gamepad-demo/ GitHub URL: https://github.com/robhawkes/gamepad-demo/blob/master/js/gamepad.js
Demo was written 2 years ago. Will not work with upcoming IE and mostly likely no longer Firefox:
requestAnimationFrameuses webkit and moz prefixes. No standard version- Detects Chrome (with Webkit prefix) OR uses moz prefixed events. No unprefixed events. Recent versions of Firefox and upcoming IE don’t use prefixes.
- gamepad.buttons is now an array of objects rather than doubles (FF28+, IE.next)
- May as well update support info and link to special FF build on the host web page once updated too.
Contact: @robhawkes (author)
I forked this and intended to fix it but didn't quite get around to it. Shouldn't be too hard.
Submitted a PR to fix things: https://github.com/robhawkes/gamepad-demo/pull/5