summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/SDL2/test/emscripten
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/SDL2/test/emscripten')
-rw-r--r--3rdparty/SDL2/test/emscripten/joystick-pre.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/3rdparty/SDL2/test/emscripten/joystick-pre.js b/3rdparty/SDL2/test/emscripten/joystick-pre.js
deleted file mode 100644
index 5fd789d1f73..00000000000
--- a/3rdparty/SDL2/test/emscripten/joystick-pre.js
+++ /dev/null
@@ -1,25 +0,0 @@
-Module['arguments'] = ['0'];
-//Gamepads don't appear until a button is pressed and the joystick/gamepad tests expect one to be connected
-Module['preRun'].push(function()
-{
- Module['print']("Waiting for gamepad...");
- Module['addRunDependency']("gamepad");
- window.addEventListener('gamepadconnected', function()
- {
- //OK, got one
- Module['removeRunDependency']("gamepad");
- }, false);
-
- //chrome
- if(!!navigator.webkitGetGamepads)
- {
- var timeout = function()
- {
- if(navigator.webkitGetGamepads()[0] !== undefined)
- Module['removeRunDependency']("gamepad");
- else
- setTimeout(timeout, 100);
- }
- setTimeout(timeout, 100);
- }
-});