port gamepad API

Still haven't tested it. Preliminary thoughts?
`#include <emscripten/html5.h>`