Skip to content

Commit

Permalink
New spec is getGamePads
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Aug 2, 2012
1 parent 3102b23 commit b24c347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feature-detects/gamepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

0 comments on commit b24c347

Please sign in to comment.