stale icon indicating copy to clipboard operation
stale copied to clipboard

robhawkes: “GamePad API Demo” only uses vendor prefixes

Open dstorey opened this issue 11 years ago • 2 comments

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:

  • requestAnimationFrame uses 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)

dstorey avatar Apr 21 '14 03:04 dstorey

I forked this and intended to fix it but didn't quite get around to it. Shouldn't be too hard.

luser avatar Apr 29 '14 17:04 luser

Submitted a PR to fix things: https://github.com/robhawkes/gamepad-demo/pull/5

luser avatar May 02 '14 15:05 luser