libsdl-org / SDL

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

Emscripten input callbacks #10292

Open HDAKFD opened 1 month ago

HDAKFD commented 1 month 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 1 month ago

We can definitely add a hint for this.