Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need some help on sdl2 ime support #48

Open
shellohunter opened this issue Dec 5, 2024 · 4 comments
Open

need some help on sdl2 ime support #48

shellohunter opened this issue Dec 5, 2024 · 4 comments

Comments

@shellohunter
Copy link

I'm coding a small text input widget using sdl2. What I'm trying to do is to support system IME (CJK) with IME candidates shown. Unfortunately I have not make it yet. After googling around I found your post on sdl2 forum. I'm wondering if I can get some help here.

I checked the code here. It seems mir2x does not support system IME, but implemented a in-game input board based on libpinyin. Am I correct? Is there any issue that made you drop the sdl2 input API (such as SDL_StartTextInput)?

ref: libsdl-org/SDL#2243 (comment)

@etorth
Copy link
Owner

etorth commented Dec 5, 2024

because I never made it work...
if you somehow made it, please let me know.

@shellohunter
Copy link
Author

:)
well, let's hope there would be a solution somehow.

@shellohunter
Copy link
Author

here's the good news: I made it work.
the aha moment came to me as I occasionally found this commit: ocornut/imgui@fab96a6
verified ok on win10 and mac, no linux desktop to try though.

@etorth
Copy link
Owner

etorth commented Dec 11, 2024

here's the good news: I made it work. the aha moment came to me as I occasionally found this commit: ocornut/imgui@fab96a6 verified ok on win10 and mac, no linux desktop to try though.

ah, I also want linux, or wsl is good enough..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants