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