/// <summary> /// 响应键盘释放事件 /// Invoke (https://msdn.microsoft.com/zh-cn/library/zyzhdc6b.aspx) /// </summary> /// <param name="args"></param> private void OnKeyUp(XKeyboardEventArgs args) { XKeyboardHandler <XKeyboardEventArgs> temp = m_keyUp; if (temp != null) { temp.Invoke(args); } }
/// <summary> /// 添加键盘释放事件 /// </summary> /// <param name="func"></param> public void addKeyUpEvent(XKeyboardHandler <XKeyboardEventArgs> func) { m_keyUp += func; }