コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
         }
     }
 }
コード例 #3
0
 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;
         }
     }
 }
コード例 #4
0
 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";
         }
     }
 }
コード例 #5
0
 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";
         }
     }
 }