Skip to content

A C# Wrapper for Windows IME APIs. Supports IMM32 and TSF.

License

Notifications You must be signed in to change notification settings

Windmill-City/IngameIME_Sharp

Repository files navigation

IngameIME_Sharp

A C# wrapper for Windows IME APIs. Its goal is to support both IMM32 and TSF. using https://github.com/Windmill-City/IngameIME

Introduction

Using IngameIME_Sharp

//get a control first
//For win7 or below, use IMM
//For Win8 above should use TSF
private BaseIME_Sharp api;
//api = new IMM();
api = new TSF();

initialize

api.Initialize(Handle);
//Composition
api.m_compositionHandler.eventComposition += M_compositionHandler_eventComposition; ;
api.m_compositionHandler.eventGetTextExt += M_compositionHandler_eventGetTextExt; ;

//CandidateList
api.m_candidateListWrapper.eventCandidateList += M_candidateListWrapper_eventCandidateList;

//AlphaMode
api.eventAlphaMode += Api_eventAlphaMode;

*Set IME State and FullScreen Mode

api.setState(true);
api.setFullScreen(true);

MS Docs