FS#59260 - [sdl2] IME(IBus) not work in SDL2
Attached to Project:
Arch Linux
Opened by Lingfeng Zhang (FireZ) - Saturday, 07 July 2018, 15:32 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 04 October 2018, 22:43 GMT
Opened by Lingfeng Zhang (FireZ) - Saturday, 07 July 2018, 15:32 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 04 October 2018, 22:43 GMT
|
Details
Description:
InitKeyboard not init IME(IBus), SDL_USE_IME should be defined in CMakeLists.txt Additional info: * sdl 2.0.8-8 the sdl-use-ime.patch tested work for ibus |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 04 October 2018, 22:43 GMT
Reason for closing: No response
Thursday, 04 October 2018, 22:43 GMT
Reason for closing: No response
SDL_StartTextInput() should support ime like ibus or fcitx but not. There is an argument `--enable-ime` in ./confirgure and it will enable ime support and define SDL_USE_IME. But if you directly use cmake to build sdl2, ime will not be supported and SDL_USE_IME will not be defined even if libibus or fcitx library in build deps.
You can test it by example in https://wiki.libsdl.org/Tutorials/TextInput, and use ibus or fcitx to enter some text.
Or install some program depends on sdl2 like teeworlds and use ibus or fcitx to enter some text in inputbox.
after patch, work fine,
lib32-sdl2 not test.