Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ConsoleKeyInfo()

System.ConsoleKeyInfo.ConsoleKeyInfo ( char keyChar,
ConsoleKey key,
bool shift,
bool alt,
bool control )
inline

Definition at line 19 of file ConsoleKeyInfo.cs.

20 {
21 if (key < (ConsoleKey)0 || key > (ConsoleKey)255)
22 {
23 throw new ArgumentOutOfRangeException("key", System.SR.ArgumentOutOfRange_ConsoleKey);
24 }
25 _keyChar = keyChar;
26 _key = key;
28 if (shift)
29 {
30 _mods |= ConsoleModifiers.Shift;
31 }
32 if (alt)
33 {
35 }
36 if (control)
37 {
38 _mods |= ConsoleModifiers.Control;
39 }
40 }
static string ArgumentOutOfRange_ConsoleKey
Definition SR.cs:62
Definition SR.cs:7
readonly ConsoleModifiers _mods
readonly ConsoleKey _key
readonly char _keyChar

References System.ConsoleKeyInfo._key, System.ConsoleKeyInfo._keyChar, System.ConsoleKeyInfo._mods, System.SR.ArgumentOutOfRange_ConsoleKey, and System.key.