Game Development Community

Unicode for Chatting

by game4Rest · in Torque Game Engine · 07/18/2006 (3:38 am) · 1 replies

Hi, all!

I know unicode for chatting is not supported yet. But as my Korean players won't be happy if they are asked to talk in English, I'd like to change the code to support Korean.

After spending quite a lot time, I became to know WM_IME_COMPOSITION, and WM_CHAR is the right place
to handle the unicode input.

But it seems input into the messageHud gui in demo isn't generating any messages such as WM_CHAR.
Would someone let me know how players input is handled in messageHud?

And if there is anyone who has done this already, would you please lead me to the right way?

Thanks in advance.

Hong Jin

#1
07/19/2006 (7:00 pm)
OK, when the player input something into GuiTextEditControl, WM_KEYDOWN message is generated.
And the function onKeyDown() in the GuiTextEditControl Class handles it.