forked from toehead2001/aeroshot
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,034 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Windows.Forms; | ||
|
||
namespace AeroShot | ||
{ | ||
static class KeyHelpers | ||
{ | ||
//TODO: localized key names | ||
public static string[] modifiers = { "", "Alt", "Ctrl", "Ctrl + Alt", "Shift", "Alt + Shift", "Ctrl + Shift", "Ctrl + Alt + Shift" }; | ||
//TODO: is there no better way to implement this? | ||
public static Dictionary<Keys, int> modifierCodes = new Dictionary<Keys, int> { | ||
{ Keys.Alt, 1 }, | ||
{ Keys.Control, 2 }, | ||
{ Keys.Alt ^ Keys.Control, 3 }, | ||
{ Keys.Shift, 4 }, | ||
{ Keys.Alt ^ Keys.Shift, 5 }, | ||
{ Keys.Shift ^ Keys.Control, 6 }, | ||
{ Keys.Alt ^ Keys.Shift ^ Keys.Control, 7} | ||
}; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.