This is the AMP version of this page.
If you want to load the real page instead, click this text.

Help! Cyrillic input in the ImGUI menu

NullCoder

Inactive Approved Modder
Greetings to everyone! I am using nativeInjectEvent interception at libunity.so. And all symbols are perfectly introduced except for the Russian language. When entering Russian symbols, unicodeChar returns jint == 0. Who uses imgui tell me how you enter your symbols or how can I correct the input of Russian characters?

C++:
jint metaState = env->CallIntMethod(inputEvent_obj, keyEvent_getMetaState);
io.AddInputCharacter(env->CallIntMethod(inputEvent_obj, keyEvent_getUnicodeChar, metaState));
 
first off you need to load a font in imgui that supports cyrillic, but i dont think thats the issue.
android sdk documentation says that if it returns 0 then its not a unicode character ( https://developer.android.com/reference/android/view/KeyEvent#getUnicodeChar() )
try to see if whenever you type something ingame in cyrillic it works, if it does then hook nativeinjectevent and check manually the pressed unicode chars, to isolate if its a problem with unity or imgui itself