Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New spec is getGamePads

  • Loading branch information...
commit b24c347e53bb1cc1d6a8e9510ee80f9c1a459f40 1 parent 3102b23
@ebidel ebidel authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  feature-detects/gamepad.js
View
3  feature-detects/gamepad.js
@@ -2,4 +2,5 @@
// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html
// By Eric Bidelman
-Modernizr.addTest('gamepads', !!Modernizr.prefixed('gamepads', navigator));
+Modernizr.addTest('gamepads', !!Modernizr.prefixed('Gamepads', navigator) ||
+ !!Modernizr.prefixed('GetGamepads', navigator));
Please sign in to comment.
Something went wrong with that request. Please try again.