For all the OpenGL applications including Unity, if some edit box needs IME to get charactors, the keyboard input will be intercepted until IME is turned off manually.
This plugin is to fix this problem by turning on/off the IME automatically in Unity scripts.
Simply by calling UnityWinUtility.EnableIME(bool bEnable).
The only defact is it only supports Unity Window Standalone application.
See the demo and project source in the attachment.
UnityWinUtiliyDemo
UnityWinUtilitySource
This plugin also support hardware cursor.
public class UnityWinUtility
{
[DllImport("UnityWinUtility")]
public static extern void EnableIME(bool bEnable);
[DllImport("UnityWinUtility")]
public static extern void EnableCustomCursor(bool bEnable);
[DllImport("UnityWinUtility")]
public static extern void RegistCursor(int nCursorID, string strFilename);
[DllImport("UnityWinUtility")]
public static extern void ApplyCursor(int nCursorID);
}
Just check it out!
Nice work,Thanks for sharing.
great,but the link is lost.can you give a new link?