Onscreen keyboard seems begin working, still not tested IM...

This commit is contained in:
Pere Pujal i Carabantes 2015-01-20 00:34:07 +01:00
parent b08ddf00dd
commit 9759e648ea

View file

@ -1746,10 +1746,13 @@ struct osk_keyboard * osk_clicked(on_screen_keyboard *keyboard, int x, int y)
return(keyboard);
else
// printf("kcomposed %ls\n", *keyboard->composed);
if (keyboard->composed_type == 1)
event.text.text[0] = *keyboard->composed;
wcstombs(event.text.text, keyboard->composed, 16);
// event.text.text = *keyboard->composed;
else
event.text.text[0] = keysym2unicode(mnemo2keysym(mnemo, keyboard), keyboard);
snprintf(event.text.text, 16, "%lc", keysym2unicode(mnemo2keysym(mnemo, keyboard), keyboard));
//event.text.text = keysym2unicode(mnemo2keysym(mnemo, keyboard), keyboard);
clear_dead_sticks(keyboard);
event.type = SDL_KEYDOWN;