Beispiel #1
0
        /// <summary>
        /// 触发按钮按下事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnButtonDown(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.ButtonDown;

            if (h != null)
            {
                h(this, e);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 触发单击事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnClick(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.Click;

            if (h != null)
            {
                h(this, e);
            }
        }