Chinese IME candidate list display

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Party member
Posts: 159
Joined: Thu Feb 05, 2015 1:57 am
Location: Chengdu,China

Chinese IME candidate list display

Post by Alexar » Sun Jul 15, 2018 9:29 am

I've just figured out how to enable the candidate list display for windows Chinese IME. This problem disturbed me for long time.
I've sent an issue to megasource repo in bitbucket.
here is what we get
GIF2.gif (143.22 KiB) Viewed 363 times
replace the sdl2.dll in the love folder. and voila.
oh, to set the caret position for the candidate list, you have to use user32.dll for windows.

Code: Select all

local ffi = require("ffi")
ffi.cdef [[
long CreateCaret(long hwnd,long map,long width,long height);
long GetForegroundWindow(void);
long SetCaretPos(long x,long y);
long SetFocus(long hwnd);]]
local gamehwnd=u32.GetForegroundWindow()
built with vs2017 x64
(424.56 KiB) Downloaded 25 times

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests