kripken/emscripten — pull request #1777 by jvilk (2013-11-10 07:30:44+00:00)
Title: [SDL] Joystick API implementation using HTML5 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