Skip to content

Commit

Permalink
avoid assigning QWERTY keys to other callbacks to remove comm menu as…
Browse files Browse the repository at this point in the history
…sign.
  • Loading branch information
chihirobelmo committed Jul 1, 2022
1 parent 704e32b commit 52a74d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Falcon BMS Alternative Launcher/Windows/KeyMappingWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52a74d6

Please sign in to comment.