コード例 #1
0
ファイル: Joystick.cs プロジェクト: LeoJhonSong/TCP_Server
        /// <summary>
        /// 触发按钮按下事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnButtonDown(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.ButtonDown;

            if (h != null)
            {
                h(this, e);
            }
        }
コード例 #2
0
ファイル: Joystick.cs プロジェクト: LeoJhonSong/TCP_Server
        /// <summary>
        /// 触发单击事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnClick(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.Click;

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