/// <summary> /// 触发按钮按下事件 /// </summary> /// <param name="e"></param> protected void OnButtonDown(JoystickEventArgs e) { EventHandler <JoystickEventArgs> h = this.ButtonDown; if (h != null) { h(this, e); } }
/// <summary> /// 触发单击事件 /// </summary> /// <param name="e"></param> protected void OnClick(JoystickEventArgs e) { EventHandler <JoystickEventArgs> h = this.Click; if (h != null) { h(this, e); } }