Skip to main content
While a physically attached keyboard is a common assumption on PC, new input modalities like gamepads and touch challenge this assumption. This is especially important for handheld and console gamers. Depending on the platform, there are different solutions to bring up the virtual keyboard. While the title could implement and create its own virtual keyboard, the system provides its own virtual keyboard alternatives that are optimized for the platform and provide a consistent user experience across all games. On Windows, the TryShow API can be leveraged with the new CoreInputViewKind::Gamepad option. The TryHide API can then be used to dismiss the keyboard when not needed. This is demonstrated in the following code sample:
For console, the GDK provides two different solutions to handle text input using a virtual keyboard. For most games, the best solutions is to rely on XGameUiShowTextEntryAsync. For games that need to render multi-line text or the input of more than 1024 characters, they can rely on XGameUiTextEntryOpen. The following table provides a comparison between these two solutions.

See also

Checklist for GDK games on Windows handheld devices - Check 3: Text Input XGameUiShowTextEntryAsync XGameUiTextEntryOpen
Last modified on August 6, 2026