Textbox in a C# XNA Game
问题 I'm new to XNA. I'm making a game which needs level editor. I need a textbox to get a level name and its description. So I wrote a code like this: if (isSaveBox) { KeyboardState ks = Keyboard.GetState(); Keys[] keys = ks.GetPressedKeys(); Keys tempKey = Keys.None; foreach (Keys key in keys) { Keys currentKey = key; if (ks.IsKeyUp(lastKey)) { string toadd = key.ToString(); if (!(key == Keys.None) && key != Keys.Space && key != Keys.Back && key != Keys.Enter) { levelName += toadd; } else if