UWPHook icon indicating copy to clipboard operation
UWPHook copied to clipboard

[BUG] Using a controller with SteamLink won't work with UWPHook.

Open BrianLima opened this issue 9 years ago • 13 comments

I'm not 100% sure since i don't have a SteamLink to test, but i think that Steam link redirects xInput calls directly to the app it launches, since it is launching UWPHook and not the UWP game added with it, it won't work. Maybe i could intercept button presses and make UWPHook work as a input wrapper for these cases? I have to test with in home streamming and try to diagnose what is happening. I hope both work in the same way, because i can't get my hands on a SteamLink.

BrianLima avatar Oct 06 '16 11:10 BrianLima

hi yeah i have your app and steamlink and the controller, once the programs linked up to steam and i run a game it registers my controller as a keyboard configuration and not a controll pab config, is there any way youd be able to change this.

Bananamanzak avatar Nov 21 '16 02:11 Bananamanzak

I'm trying to, but can't find the cause yet, also, i don't have a Steam controller to test this, so it's a bit hard to debug, it seems it's out of what i can do, but i haven't give up yet. Haven't commited in a while, but i'm researching how to fix these bugs.

BrianLima avatar Nov 21 '16 12:11 BrianLima

Did someone test it with virtualhere?

Some thoughts about a solution without 3rd Party Apps:

  • Is it possible to catch the steam link controller inputs with the uwphook.exe?
  • converting the inputs with a wrapper
  • converting it to Windows.Gaming.Input or Xinput , depending on what could be detected by the UWP Game -> Maybe you have already tried to catch the inputs from your streaming client.

darkofant avatar Nov 24 '16 16:11 darkofant

@chrisjung86 Many users reported that it works with virtual here.

Is it possible to catch the steam link controller inputs with the uwphook.exe? converting the inputs with a wrapper converting it to Windows.Gaming.Input or Xinput , depending on what could be detected by the UWP Game

That's my idea, but i'm a bit busy with my regular work these days, i did some tests on my machine and couldn't get this to work for now.

BrianLima avatar Nov 24 '16 16:11 BrianLima

Hmmm a simple solution would be all game be on steam XD

On 24 Nov 2016 16:16, "Brian Lima" [email protected] wrote:

@chrisjung86 https://github.com/chrisjung86 Many users reported that it works with virtual here.

That's my idea, but i'm a bit busy with my regular work these days, i did some tests on my machine and couldn't get this to work for now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BrianLima/UWPHook/issues/5#issuecomment-262810440, or mute the thread https://github.com/notifications/unsubscribe-auth/AWh2f5gTXqhDdfuhmPTpLaqlWqNhWauAks5rBbhfgaJpZM4KP1ks .

Bananamanzak avatar Nov 24 '16 16:11 Bananamanzak

I have the same problem with Streaming steam pc to pc My Xbox controler work but the key emulate keybord or mouse exemple: accelerate is key up (the controler with offcial keymap work on other non steam game)

Sph1re avatar Feb 24 '17 19:02 Sph1re

Just commenting to let people from the future know that UWP apps only work with controllers over Steam Link when you use VirtualHere Steam edition.

i-ghost avatar Aug 10 '17 00:08 i-ghost

My set up is a PC, Steam Link and an X360 wireless pad with the adaptor connected to the steam link. I can also use the PS4 pad. I would like to help you get your app to allow controllers through the link, right now I can launch them which is great, but I can't play them, not so great.

cjbeames avatar Oct 31 '17 11:10 cjbeames

the biggest problem with steam link is the way it connects controllers to the PC. your controllers are connected to the steam link not the PC so the only way to fix controller issues with UWP and many steam games is to only use USB controllers (or USB adaptors) and buy VirtualHere For Steam Link. VirtualHere For Steam Link sends the RAW USB data to the PC so all games work as they would if the controller was plugged in direct. I spent weeks trying to get it working another way but this is the only option The problem is with steam link not UWPHook

satan2180 avatar Oct 31 '17 16:10 satan2180

http://store.steampowered.com/app/440520/VirtualHere_For_Steam_Link/

satan2180 avatar Oct 31 '17 16:10 satan2180

I am able to use a wireless controller to play non steam games through the steam link though, just not UWP ones. I'm also able to launch via steam and play with those controllers at the host. Just not link + UWP + controller. Fair enough I'm sure you've tried, but how can an emulator catch the input but the UWP can't? The emulator is Cemu if that helps

On 31 Oct 2017 16:00, "satan2180" [email protected] wrote:

the biggest problem with steam link is the way it connects controllers to the PC. your controllers are connected to the steam link not the PC so the only way to fix controller issues with UWP and many steam games is to only use USB controllers (or USB adaptors) and buy VirtualHere For Steam Link. VirtualHere For Steam Link sends the RAW USB data to the PC so all games work as they would if the controller was plugged in direct. I spent weeks trying to get it working another way but this is the only option The problem is with steam link not UWPHook

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BrianLima/UWPHook/issues/5#issuecomment-340810442, or mute the thread https://github.com/notifications/unsubscribe-auth/AYVcRU_5Er9BN3PeDHihDHTTcrPud9Ytks5sx0Q1gaJpZM4KP1ks .

cjbeames avatar Oct 31 '17 16:10 cjbeames

@cjbeames To put it very simply, Steam presents an emulated HID device to apps launched via Steam, which works by translating inputs from your device into a common output (presented as a gamepad where possible). The catch is that it requires the Steam overlay to be supported by the application. UWP, being sandboxed, doesn't allow for any sort of injection, and I don't think Valve care enough to support a rival's sandboxing mechanism. Maybe one day Valve create a workaround, as they've gone to the trouble of adding generic gamepad and DirectInput support, but I haven't heard any whispers about it.

If you really, really want to use UWP without VirtualHere over SteamLink, configure your controller settings for the game to match the keyboard settings of the UWP application. This might require you to set your desktop configuration instead of just the UWP shortcut configuration. I haven't tested this but in theory it should work as I remember clicking around the Killer Instinct menu using my arcade stick which presented itself as a keyboard due to the desktop configuration, which was reflected in the KI menu UI (keyboard icons).

You can also avoid this headache by just buying VirtualHere and an adapter 😄.

i-ghost avatar Oct 31 '17 16:10 i-ghost

I see. I did try using the ‘desktop configuration’ but that didn’t get me anywhere either. Which is bizarre as the keyboard I have attached to the steam Link does work. Thanks for the explanation. Your UWPHOOK thing is pretty great other than my problem, so cheers for that too.

Sent from Mail for Windows 10

From: i-ghost Sent: 31 October 2017 16:32 To: BrianLima/UWPHook Cc: cjbeames; Mention Subject: Re: [BrianLima/UWPHook] [BUG] Using a controller with SteamLink won'twork with UWPHook. (#5)

@cjbeames To put it very simply, Steam presents an emulated HID device to apps launched via Steam, which works by translating inputs from your device into a common output (presented as a gamepad where possible). The catch is that it requires the Steam overlay to be supported by the application. UWP, being sandboxed, doesn't allow for any sort of injection, and I don't think Valve care enough to support a rival's sandboxing mechanism. Maybe one day Valve create a workaround, as they've gone to the trouble of adding generic gamepad and DirectInput support, but I haven't heard any whispers about it. If you really, really want to use UWP without VirtualHere over SteamLink, configure your controller settings for the game to match the keyboard settings of the UWP application. This might require you to set your desktop configuration instead of just the UWP shortcut configuration. I haven't tested this but in theory it should work as I remember clicking around the Killer Instinct menu using my arcade stick which presented itself as a keyboard due to the desktop configuration, which was reflected in the KI menu UI (keyboard icons). You can also avoid this headache by just buying VirtualHere and an adapter 😄. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

cjbeames avatar Oct 31 '17 16:10 cjbeames