This web page was created programmatically, to learn the article in its authentic location you possibly can go to the hyperlink bellow:
https://developer.microsoft.com/en-us/games/articles/2025/07/windows-gaming-handheld-code-samples/
and if you wish to take away this text from our website please contact us
Today, Microsoft is releasing samples to supply examples & training materials that builds on our checklist for games on Windows handhelds. These samples present finest practices and code examples that may be built-in into your video games when contemplating Windows gaming handheld eventualities.
This Handheld Experience Best Practices launch contains two samples, a native C++ pattern and a Unity managed C# sample. Both present an identical set of finest practices round learn how to leverage APIs to handle your video games handheld expertise simply. These embody examples demonstrating learn how to:
- Determine if a tool is a handheld.
- Determine if a tool is working battery energy, charging or utilizing exterior energy.
- Look up machine particular properties, together with built-in show properties.
- Handle DPI modifications and scale UI accordingly.
- Leverage Virtual Keyboards for textual content entry.
- Look up community gadgets & varieties.
- Determine community and Bluetooth connectivity.
- Handle enter from Gamepad, Keyboard and Mouse.
- Determine enter modality (i.e. newest enter machine used).
These samples will proceed to be up to date as Windows enhancements are made which are useful to Windows handheld gaming eventualities and as we collect suggestions from recreation builders who construct for these gadgets.
To purchase these samples, please see:
For extra on handheld recreation improvement, you should definitely take a look at our Xbox Handheld Gaming Developer Resource Hub.
This web page was created programmatically, to learn the article in its authentic location you possibly can go to the hyperlink bellow:
https://developer.microsoft.com/en-us/games/articles/2025/07/windows-gaming-handheld-code-samples/
and if you wish to take away this text from our website please contact us
