jkuhlmann / gainput

Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
http://gainput.johanneskuhlmann.de/
MIT License
858 stars 103 forks source link

emscripten support #48

Open RicoP opened 7 years ago

RicoP commented 7 years ago

hi there.

Are there any plans to support emscripten? Meaning being able to compile a gainput app with the emcc compiler and have proper keyboard, mouse and gamepad support.

RicoP commented 7 years ago

Luckely mouse and keyboard bindings should be quite tribvial to implement, because emscripten already gives us propper callbacks: https://github.com/bkaradzic/bgfx/blob/5df496952726d0c7ecb91ed1b1976f31eba03d7d/examples/common/entry/entry_asmjs.cpp#L91