I've sent an issue to megasource repo in bitbucket.
here is what we get 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);]]
u32=ffi.load("User32")
local gamehwnd=u32.GetForegroundWindow()
u32.SetFocus(gamehwnd)
u32.CreateCaret(gamehwnd,0,4,20)
--u32.SetCaretPos(x,y)