"Run In Background" while capturing joystick input events

Is it possible to capture input (like joystick movement) while the unity player does not have focus? (on windows)

I have "Run in Background" as well as "Capture Single Screen" checked.

Currently the joystick events are being ignored once the unity3d application looses focus--even if it is still visible and still rendering.

I got this working by creating a service that runs in the background and forwards the joystick events to unity3D over a local network connection.

Clement

Could you share how you made your service ? or the service itself?,Could you share how you made this service?

Because this is still the top Google hit for this question, the new Input system supports polling joysticks when not in focus by setting Background Behavior to Ignore Focus.

https://docs.unity3d.com/Packages/com.unity.inputsystem@1.1/manual/Settings.html#background-behavior