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

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

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

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

            if (h != null)
            {
                h(this, e);
            }
        }
예제 #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();
        }
예제 #6
0
 /// <summary>
 /// 触发按钮按下事件
 /// </summary>
 /// <param name="e"></param>
 protected void OnButtonDown(JoystickEventArgs e)
 {
     EventHandler<JoystickEventArgs> h = this.ButtonDown;
     if (h != null) h(this, e);
 }
예제 #7
0
 protected void OnMove(JoystickEventArgs e)
 {
     EventHandler<JoystickEventArgs> h = this.Move;
     if (h != null) h(this, e);
 }
예제 #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();
        }
예제 #10
0
        public void JoyStickClick(object sender, JoystickEventArgs e)
        {
            byte[] keyState = new byte[256];
            user32.GetKeyboardState(keyState);

            MatchAndSend(e.Buttons, keyState);
        }