Is there a better way to do the following?
I tried importing Microsoft.VisualBasic and then using Interaction.InputBox() but it sometimes crashed and otherwise froze the game.
string text = string.Empty;
if (IsNewKeyPress(Keys.A))
{
if (CurrentKeyboardState.IsKeyDown(Keys.LeftShift) || CurrentKeyboardState.IsKeyDown(Keys.RightShift))
{
text += "A";
}
else
{
text += "a";
}
}
if (IsNewKeyPress(Keys.B))
{
if (CurrentKeyboardState.IsKeyDown(Keys.LeftShift) || CurrentKeyboardState.IsKeyDown(Keys.RightShift))
{
text += "B";
}
else
{
text += "b";
}
}
//Through z, plus numbers