Make Anbox show the virtual keyboard when needed
It would be nice to make the OSK integrated with Anbox so that text input is functional on phones.
Some information dump
The directory handling input in Anbox source: /anbox/platform/sdl/
on the SDL side, you can ask to show the osk as such: ShowScreenKeyboard(SDL_GetVideoDevice(), sdl_window)
. Anbox uses sdl windows with a wrapper. You can get a SDL_Window*
from a anbox::sdl::Window w
using SDL_GetWindowFromID(w->window_id)
.
Related: SDL bug report for phosh https://bugzilla.libsdl.org/show_bug.cgi?id=5021