Click or drag to resize
GameInputGetKeyboardInput Method
Read keyboard input into a string. Get one character at a time.

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public string GetKeyboardInput(
	string currText,
	ref int pos
)

Parameters

currText
Type: SystemString
Current text to push input into.
pos
Type: SystemInt32
Position to push new characters to (will increase with every typed character).

Return Value

Type: String

[Missing <returns> documentation for "M:GeonBit.Managers.GameInput.GetKeyboardInput(System.String,System.Int32@)"]

Examples
string userInput = ""; int pos = 0; while (!GameInput.Instance.IsKeyDown(GameKeys.Escape)) { userInput = userInput + GameInput.Instance.GetKeyboardInput(currText, ref pos); }
See Also