private void load(GameHost host) { textInput = host.GetTextInput(); clipboard = host.GetClipboard(); if (textInput != null) { textInput.OnNewImeComposition += delegate(string s) { textUpdateScheduler.Add(() => onImeComposition(s)); cursorAndLayout.Invalidate(); }; textInput.OnNewImeResult += delegate { textUpdateScheduler.Add(onImeResult); cursorAndLayout.Invalidate(); }; } }
private void load(BasicGameHost host, AudioManager audio) { this.audio = audio; textInput = host.GetTextInput(); clipboard = host.GetClipboard(); if (textInput != null) { textInput.OnNewImeComposition += delegate(string s) { textUpdateScheduler.Add(() => onImeComposition(s)); cursorAndLayout.Invalidate(); }; textInput.OnNewImeResult += delegate(string s) { textUpdateScheduler.Add(() => onImeResult(s)); cursorAndLayout.Invalidate(); }; } }