private void keyboardListener_OnKeyPressed(object sender, Common.KeyEventArgs e) { if (e.Key == Key.LWin || e.Key == Key.RWin) { CairoLogger.Instance.Debug(e.Key.ToString() + " Key Pressed"); ToggleProgramsMenu(); e.Handled = true; } }
private void LowLevelKeyboardListener_OnKeyDown(object sender, Common.KeyEventArgs e) { if (IsMouseOver) { if (e.Key == System.Windows.Input.Key.LeftShift || e.Key == System.Windows.Input.Key.RightShift) { isShiftKeyHeld = true; } } }
private void LowLevelKeyboardListener_OnKeyUp(object sender, Common.KeyEventArgs e) { if (isShiftKeyHeld) { if (e.Key == System.Windows.Input.Key.LeftShift || e.Key == System.Windows.Input.Key.RightShift) { isShiftKeyHeld = false; } } }
private void LowLevelKeyboardListener_OnKeyUp(object sender, Common.KeyEventArgs e) { if (backButtonTypeToggled) { if (e.Key == System.Windows.Input.Key.LeftShift || e.Key == System.Windows.Input.Key.RightShift) { backButtonTypeToggled = false; backButtonImg.Source = new BitmapImage(new Uri("/Resources/controlsBack.png", UriKind.RelativeOrAbsolute)); btnBack.ToolTip = "Back"; } } }
private void LowLevelKeyboardListener_OnKeyDown(object sender, Common.KeyEventArgs e) { if (IsMouseOver) { if (e.Key == System.Windows.Input.Key.LeftShift || e.Key == System.Windows.Input.Key.RightShift) { backButtonImg.Source = new BitmapImage(new Uri("/Resources/controlsUp.png", UriKind.RelativeOrAbsolute)); backButtonImg.Width = 18; backButtonImg.Height = 16; backButtonTypeToggled = true; btnBack.ToolTip = "Parent"; } } }