Пример #1
0
 private void Input_KeyPressed(object sender, DirectKeyboardEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         //Skip the splash screen when any key is pressed
         EndSplash();
     });
 }
Пример #2
0
 private void Input_KeyPressed(object sender, DirectKeyboardEventArgs e)
 {
     Dispatcher.Invoke(() =>
     {
         if (e.State.PressedKeys.Contains(SharpDX.DirectInput.Key.Home))
         {
             MenuHandler.Home();
         }
     });
 }