port gamepad API

Still haven't tested it. Preliminary thoughts?
`&gamepadState`
` == EMSCRIPTEN_RESULT_SUCCESS`