floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.04k stars 494 forks source link

Fix character input on HTML5 mobile. #820

Closed floooh closed 8 months ago

floooh commented 1 year ago

Android/iOS differences:

Remaining problems:

...why do the emulators and the imgui-sample behave so differently? Only difference seems to be that sapp_show_keyboard is called outside the event handler when using sokol_imgui.h??

...implementing that same behaviour in the emulators doesn't make a difference though...

...but maybe the same tap which causes the helper input text field to become focused also unfocuses it immediately? But when that's the case why doesn't it happen in the imgui-sapp sample?

...all this mess is probably a good reason to go with the original plan to remove this mobile text input hack completely. It's brittle as f*ck.

floooh commented 8 months ago

Closing as won't fix.