示例#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);
        }