PS5 controller in Game Pass and Xbox app games
Windows 10 and 11. Not for Steam Deck.
Your PS5 controller works in Steam but not in a Game Pass game. Or the right stick moves the mouse while Steam is open.
steambro adds the game to Steam, and you press Play there. With the free driver, your DualSense uses your Steam Input layout in the game.
steambro is free and open source. If Windows warns about the GitHub download, select More info, then Run anyway.
Set up your PS5 controller
Install the driver
Xbox app games need the free driver for a PlayStation controller. Epic, Battle.net and GOG games do not.
Install steambro
Download it from GitHub, or get it on the Microsoft Store.
Add your games to Steam
Open steambro and select Add to Steam. Steam restarts once.
Press Play in Steam
Start the game from Steam or Big Picture. Your controller uses your Steam layout in the game.
What your DualSense does in the game
The game shows Xbox button prompts, and rumble works. Adaptive triggers, the speaker and DualSense haptics do not work.
Turn on Steam Input for PlayStation controllers
In Steam, open Settings, Controller, and turn on Steam Input for PlayStation controllers. steambro warns you when it is off.

Switch Pro, DualShock 4 and DS4Windows
The same steps work for a DualShock 4 and a Switch Pro. In Steam, turn on Steam Input for that controller.
You do not need DS4Windows. Steam Input does that work.
The driver for Xbox app games
Game Pass and Xbox app games need the free ViGEmBus driver for a PS5 controller. steambro's settings tell you when you need it and link the official installer.
Only the Steam Controller is tested in Xbox app games. A PS5 controller uses the same method.