libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.2k stars 1.86k forks source link

Emscripten input callbacks #10292

Open HDAKFD opened 4 months ago

HDAKFD commented 4 months ago

Could there be an option to disable these emscripten input callbacks from getting registered. They're causing a lot of issues when trying to mess with html elements.

emscripten_set_keydown_callback, emscripten_set_keyup_callback, emscripten_set_keypress_callback

These are the main part of my issue since they just make emscripten to call event.preventDefault() for every html element with input.

slouken commented 4 months ago

We can definitely add a hint for this.