Keyboard text input handling for game UI
The Text Input system handles keyboard text entry for things like player names, chat, and text fields in menus.
Creates a text input field.
const nameInput = createTextInput(100, 100, 10);
Updates text input (call each frame).
updateTextInput(nameInput);
Gets the current text value.
const name = getInputText(nameInput);