[Issue]: Joystick inputs lag while holding any button

Open
#1,350 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android
Domain
mobile-dev

Research direction

Start by reproducing the issue with an Xbox One S or Series X controller connected over USB to the Android client, holding A, B, X, Y, LB, or RB while moving a joystick. Inspect the Android gamepad input path and compare USB behavior with Bluetooth; done when joystick input remains smooth and stops registering promptly in Moonlight.

Written by the indexing model from the issue text.

Description

bug
Describe the bug

While holding any button, there is "lag/delay" in the joystick inputs, they dont "move" smoothly, and they keep registering inputs for a few seconds after I stop moving them physically.

-Happens while holding any of the following buttons: A,B,X,Y, LB, or RB (not when holding LT, RT, or digital pad)
-There is only lag/delay in the joystick inputs, other buttons work normally.
-Only happens when controllers are connected via USB, not when on Bluetooth.
-Tried both Xbox One S and Series X controllers.
-Happens both using Gamestream and Sunshine
-Happens only with Moonlight, not when using Steam Link, nor when playing directly to PC.

Steps to reproduce
  • Press and hold A,B,X,Y, LB, RB, "Start", or "Select"
  • Move any joystick while holding any of those buttons
  • You will see lag/delay on both joystick inputs
Affected games

All, happens to whole Windows

Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

None

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

Yes

Gamepad-related streaming issue

Yes

Android version

Android 11

Device model

Daewoo D50DM54UANS

Server PC OS version

windows 10

Server PC GeForce Experience version

3.27.0.120

Server PC Nvidia GPU driver version

536.23

Server PC antivirus and firewall software

Windows Defender

Screenshots

No response

Relevant log output

No response

Additional context

No response

Dominant language
C
Stars
7.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moonlight-stream/moonlight-android

All issues in moonlight-stream/moonlight-android

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.