UWPHook
UWPHook copied to clipboard
Clashing with steam controller support
Hi
I've been using UWPhook for a while. Lately though, it clashes with steam controller support, I guess some change on steam caused this.
For instance when I launch forza 3 the right stick controls the mouse (since that's my desktop profile on steam). I guess I can just disable the desktop control profile and it would just be a minor annoyance.... but it's still an annoyance.
It's because of Steams behavior, it interprets games added via UWPHook as desktop applications and i'm yet to find a way to change this.
So I guess for the time being I should just disable the desktop profile?
Probably, it is a long time since I last tried to make these things work properly, I surely will go back, but for now, yes.
Hi @fr500, could you elaborate a little more on this "clashing"? Were you Streaming? How do i edit the desktop config?
I'm working on a new version with built-in support for streaming with controllers, but, i'm having a bit of problems, as Steam is sending keypresses from mouse or keyboard when i press a button, but the wors is that many buttons don't work at all, and i don't know where to edit it.
This problem isn't really a Steam limitation so much as it is a Microsoft Store limitation or a clash between Steam and UWP: Microsoft Store apps are run indirectly through the UWP runtime, even when using a Desktop application downloaded through the MS Store (such as Inkscape, for a non-game example). This also has the effect of, by default, removing compatibility with DirectInput (DualShock 4, old USB gamepads) and XInput 1.x devices (Xbox 360 controllers, most Windows-only XInput gamepads, and most XInput emulation, such as DS4Windows and Steam Input). Note that apps can be programmed to support XInput 1.x and DirectInput devices (such as Killer Instinct and New Super Lucky's Tale), but it's extra steps that won't even work with UWPHook because Steam's Desktop profile only supports keyboard and mouse input.
How do i edit the desktop config?
For the desktop client:
- Steam > Settings
- Controller > General Controller Settings. Turn on support for your gamepad.
- Controller > Desktop Configuration. You can edit the profile here. It defaults to disabled, but you can browse Templates for the Gamepad configuration.
The steps are a bit different for Big Picture.
I have a Duelsence and I've set my desktop configuration to a gamepad but it's within any Xbox game through UWPHook it doesn't work on any gamepad input

hope someone can help, this is the only thing holding me back from playing games pass games and had issues jumping from steam to DS4Windows back and forth
I haven't had luck playing many UWP/WinStore games with DualSense locally (didn't try streaming) aside from ones with native support (Carto and Ghost of a Tale used to work, but not any more 😕).
I setup my Desktop Configuration in Steam to use normal gamepad controls and made the touch pad act like a mouse. If I launch a game (Curse of the Dead Gods), the mouse control works but the gamepad doesn't. That means Steam is correctly setting my profile for the current game, but the game still can't see my gamepad.

My guess is that something about UWP/WinStore games access gamepads at a lower level and Steam's fake Xinput device doesn't work. Or what Formedras said and the Desktop profile doesn't actually support acting like a gamepad.
You mean while streaming? or just from steam?
perhaps disable steam input for the game and try to find an OS level driver for the DS5
I have a Duelsence and I've set my desktop configuration to a gamepad but it's within any Xbox game through UWPHook it doesn't work on any gamepad input
[Image removed for reply quote]
hope someone can help, this is the only thing holding me back from playing games pass games and had issues jumping from steam to DS4Windows back and forth
For now, try using GloSC, with or without UWPHook. It works by creating an overlay window that Steam detects and allows gamepad input on. Because of I have no clue what, Windows takes Steam's input from that window and lets it be used in the UWP application. It's not perfect, but it does work. https://alia5.github.io/GloSC/
As another alternative, try installing Windows 11 Insider Preview. Its UWP runtime takes unused and unusable controllers (including wireless DualShock 4 controllers) and feeds them to the application as XInput data. This doesn't result in duplicated inputs on games that can use DualShock 4 wired controllers, by the way. It seems to ignore inputs that the game itself accepts. Maybe it can also use DualSense controllers? Though since it's an upgrade to an operating system version still considered unstable, I'm not gonna say "It's worth a shot." You're the one that decides that one. If you're fine reformatting and reinstalling if you don't like Win11, then maybe it is. If not, best to wait for RTM, or even longer.