kripken/emscripten — pull request #1763 by jvilk (2013-11-07 07:06:17+00:00)
Title: Initial SDL Joystick support via Gamepad API

This PR implements basic polling-based joystick support for SDL. I have also written unit tests for the new functionality. :smile:

Here is a simple test program that you can easily compile to verify its functionality:
```c
#include "SDL.h"
#include
#include
#include "emscripten/emscripten.h"

void list_joysticks()
{
for (int i=0; i