From 52a74d610874becee52213099e84ebd473748efd Mon Sep 17 00:00:00 2001 From: chihirobelmo Date: Fri, 1 Jul 2022 23:18:48 +0900 Subject: [PATCH] avoid assigning QWERTY keys to other callbacks to remove comm menu assign. --- .../Windows/KeyMappingWindow.xaml.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs b/Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs index e7644b2..8502b7d 100644 --- a/Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs +++ b/Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs @@ -274,6 +274,20 @@ private void KeyMappingGrid_KeyDown() if (catchedScanCode == 0) return; + //QWERTY comm menu avoid. + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.Q && !Shift && !Ctrl && !Alt) + return; + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.W && !Shift && !Ctrl && !Alt) + return; + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.E && !Shift && !Ctrl && !Alt) + return; + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.R && !Shift && !Ctrl && !Alt) + return; + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.T && !Shift && !Ctrl && !Alt) + return; + if ((Microsoft.DirectX.DirectInput.Key)catchedScanCode == Microsoft.DirectX.DirectInput.Key.Y && !Shift && !Ctrl && !Alt) + return; + Pinky pinkyStatus = Pinky.UnShift; if (Select_PinkyShift.IsChecked == false) pinkyStatus = Pinky.Shift;