Пример #1
0
        private void GlControlHost_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            System.Windows.Input.Key input_key = e.Key;

            if (input_key == System.Windows.Input.Key.System)
            {
                input_key = e.SystemKey;
            }

            WInput.SetKeyboardState(input_key, true);
        }
Пример #2
0
 private void GlControlHost_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     WInput.SetKeyboardState(e.Key, true);
 }