kripken/emscripten — pull request #2417 by juj (2014-06-10 00:34:52+00:00)
Title: Emscripten sdl set event handler

Adds a new extension function 'emscripten_SDL_SetEventHandler' to SDL to allow routing input handling to occur inside a browser event handler. This enables Emscripten SDL code to perform functions that require being invoked from within an event handler (fullscreen request, pointer lock, payments, etc.) without the need to defer the processing to the next time an event handler is run.