I am working on an app with libraries mostly linked in with CMake.
Does anyone have an example of, or some guidance that could help me open keyboards on mobile devices with SDL ?
Maybe some calls to Android_InitKeyboard() and SDL_iPhoneKeyboardShow(1) and some cmake flags like add_definitions(-DSDL_VIDEO_DRIVER_ANDROID) or something along those lines?
SDL_StartTextInput and SDL_StopTextInput are probably what you?re looking for. StartTextInput will show the virtual keyboard on mobile platforms when it?s called (as well as enabling SDL_TEXTINPUT events.)
You can also call SDL_SetTextInputRect before starting text input to hint to the OS where the text is showing up onscreen, so it can keep it visible when the virtual keyboard is shown.
Other related functions include SDL_HasScreenKeyboardSupport and SDL_IsScreenKeyboardShown.On Dec 21, 2014, at 4:55 PM, Alden Snow <alden.snow at sftsrc.com> wrote:
Hello,
I am working on an app with libraries mostly linked in with CMake.
Does anyone have an example of, or some guidance that could help me open keyboards on mobile devices with SDL ?
Maybe some calls to Android_InitKeyboard() and SDL_iPhoneKeyboardShow(1) and some cmake flags like add_definitions(-DSDL_VIDEO_DRIVER_ANDROID) or something along those lines?