Skip to content

Commit

Permalink
Merge pull request #71 from chihirobelmo/develop
Browse files Browse the repository at this point in the history
QWERTY to remove comm menu assign avoid
  • Loading branch information
chihirobelmo authored Jul 1, 2022
2 parents 6f884b8 + 71c5c28 commit 878c992
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 878c992

Please sign in to comment.