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

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

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

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

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

            MatchAndSend(e.Buttons, keyState);
        }