moonlight-android icon indicating copy to clipboard operation
moonlight-android copied to clipboard

[Issue]: Controller not visible on host side unless input has been given after connecting

Open FUNimations opened this issue 2 years ago • 2 comments

Describe the bug

When using the android client to connect to a windows host running sunshine, the controller doesn't show up under device manager unless i press a button. The controller is only added as a device on the host after input is given from the controller.

When i use the windows client, the controller is added directly on connect. Which makes me believe the issue isn't with sunshine.

This is an issue, as some games won't detect the controller after having launched.

Steps to reproduce

  • Launch the android client
  • connect to sunshine running on windows
  • Open device manager on the windows machine
  • press any button on the control (bluetooth or on-screen)
  • see XBox controller appear in the device manager list.

Affected games

Desmuse emulator is an example of an app that is problematic.

Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

Not to my knowledge at least. In the past i launched my games after having been connected. Not sure if it's a recent issue, or if it has alwas been there.

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

10,11

Device model

Multiple tried, Moto One vision for example

Server PC OS version

W10

Server PC GeForce Experience version

None, using the new app.

Server PC Nvidia GPU driver version

don't know

Server PC antivirus and firewall software

Avast

Screenshots

No response

Relevant log output

No response

Additional context

No response

FUNimations avatar Nov 16 '24 16:11 FUNimations

i have the same issue with sunshine (Version 2025.1230.11628) on Linux (Bazzite 43, KDE 6.5.4) and Moonlight on my Android TV Box (Android TV 11, Moonlight v12.1) i tried to disable "Automatic gamepad presence detection" as that option suggest a gamepad would then always be present, but it still only shows up AFTER any input on the controller (in /dev/input/ on the sunshine host)

as a workaround i currently launch the game via script and wait till the controller shows up:

until ls /dev/input/js1 >/dev/null 2>&1; do
  sleep 0.1
done
sleep 0.3

which isn't great, but at least works ^^°

Draugor avatar Jan 02 '26 19:01 Draugor

Same thing happens for me with Duo/Apollo on my Windows 11 host, and both Artemis/Moonlight on my Android 10 device.

PcMacsterRace avatar Jan 22 '26 23:01 PcMacsterRace