Example #1
0
        public void JoyStickClick(object sender, JoystickEventArgs e)
        {
            byte[] keyState = new byte[256];
            user32.GetKeyboardState(keyState);

            MatchAndSend(e.Buttons, keyState);
        }
Example #2
0
        /// <summary>
        /// 触发按钮按下事件
        /// </summary>
        /// <param name="e"></param>
        protected void OnButtonDown(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.ButtonDown;

            if (h != null)
            {
                h(this, e);
            }
        }
Example #3
0
        protected void OnMove(JoystickEventArgs e)
        {
            EventHandler <JoystickEventArgs> h = this.Move;

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

            if (h != null)
            {
                h(this, e);
            }
        }
Example #5
0
        public void JoyStickClick(object sender, JoystickEventArgs e)
        {
            TextBox textBox = Keyboard.FocusedElement as TextBox;

            if (textBox == null)
            {
                return;
            }

            KeyStoreInfo keyStore = textBox.DataContext as KeyStoreInfo;

            if (keyStore != null)
            {
                keyStore.SetStoreValue(WinManager.GetClickButton(e.Buttons));
                //ItemList.Focus();
            }

            FinishInput();
        }
Example #6
0
 /// <summary>
 /// 触发按钮按下事件
 /// </summary>
 /// <param name="e"></param>
 protected void OnButtonDown(JoystickEventArgs e)
 {
     EventHandler<JoystickEventArgs> h = this.ButtonDown;
     if (h != null) h(this, e);
 }
Example #7
0
 protected void OnMove(JoystickEventArgs e)
 {
     EventHandler<JoystickEventArgs> h = this.Move;
     if (h != null) h(this, e);
 }
Example #8
0
 /// <summary>
 /// 触发单击事件
 /// </summary>
 /// <param name="e"></param>
 protected void OnClick(JoystickEventArgs e)
 {
     EventHandler<JoystickEventArgs> h = this.Click;
     if (h != null) h(this, e);
 }
        public void JoyStickClick(object sender, JoystickEventArgs e)
        {
            TextBox textBox = Keyboard.FocusedElement as TextBox;
            if (textBox == null)
                return;

            KeyStoreInfo keyStore = textBox.DataContext as KeyStoreInfo;
            if (keyStore != null)
            {
                keyStore.SetStoreValue(WinManager.GetClickButton(e.Buttons));
                //ItemList.Focus();
            }

            FinishInput();
        }
Example #10
0
        public void JoyStickClick(object sender, JoystickEventArgs e)
        {
            byte[] keyState = new byte[256];
            user32.GetKeyboardState(keyState);

            MatchAndSend(e.Buttons, keyState);
        }