fix gamepad/gamepad-tests.ts

This commit is contained in:
vvakame
2014-02-26 17:25:44 +09:00
parent e2fd29975e
commit 38f4ac3012

View File

@@ -38,7 +38,7 @@
console.log('Gamepad ' + e.gamepad.index + ' disconnected!');
}, false);
var requestAnimationFrame = window.requestAnimationFrame || window["mozRequestAnimationFrame"];
var requestAnimationFrame = window.requestAnimationFrame || (<any>window).mozRequestAnimationFrame;
var getGamepads = navigator.getGamepads || navigator.webkitGetGamepads;
if(getGamepads){
function runAnimation()