Unreal Engine 5.2 and Gamepad

Hello friends i’m trying to set up Pixel Streaming with an Xbox One Gamepad, in local it works perfect but when streaming all the mapped inputs in the gamepad are lost (it walks and turns and looks up and down with no problem tho) so i’m guessing if there is something missing in the blueprint to make it work with Pixel Stream. Note that i’m not using the player site but just loading it directly via de IP.

1 Like

Alright i have an update for anyone that is having problem with this. I’ve found out that since 2021 the gamepad api in browsers is set to secure context only meaning that gamepads only work if HTTPS / SSL is present. I’ll make the setup tomorrow to confirm if this solves the issue (i bet it does).

1 Like

curious to see what’s the correct setup for gamepad to work with standard browsers

I submitted a bug to the infraestructure repo because actually made the SSL / HTTPS setup and i’m still getting javascript console errors related to the gamepad so i think there is a problem with that. Will keep updating.

Hey Joe. Thanks for this post, I am also encountered (probably related) problems now in Jan. 2024 using UE5.3.2.

I am getting the same console message r.e. secure context; except that in my case the controller is detected but that controller’s triggers are not working at all (when connected to the user’s machine running the frontend stream client in the browser). All the other inputs are working as expected. If I plug the controller into the machine running the local game client (streamer/stream server) all the inputs work – even the triggers.

This definitely still smells like a browser/frontend bug to me as all the other gamepad inputs running through the browser are recognized fine, it is specifically triggers and there are similar posts describing similar types of issues with Chrome (and most modern browsers branch from the Chromium base). Gamepad Triggers Do Not Work - Google Pixel Slate Community

I’ll also report back if I learn anythign new.

Note that that infraestructure bug i submitted actually lead to some PR adjustments, did you try the latest version? I cant test yet out of time but will as soon as i can.