[Issue]: Incorrect mouse buttons in Samsung DeX

Open
#1,476 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the issue on a Samsung Z Fold5 in DeX mode using the W3C mouse-event viewer, then compare the reported right- and middle-click signals with normal mode. The payload names no source file, test, or log output; done means those buttons are forwarded correctly in DeX and the affected applications respond as expected.

Written by the indexing model from the issue text.

Description

bug
Describe the bug

When using hardware mouse with Samsung phone in DeX mode, the right click and middle click signals are not accurately sent (??) to sunshine. Some applications just cannot pick up user's middle click and right click. More specifically see below steps to reproduce.

This does not happen to the same phone in the normal, non-DeX mode.

Steps to reproduce

Test a Samsung phone with this website:
https://w3c.github.io/uievents/tools/mouse-event-viewer.html

This is in DeX mode (abnormal):

Image

This is in normal, non-DeX mode:

Image

This difference will causes applications below not able to respond to user mouse action correctly.

Affected games

Many applications. E.g.:

  • Chromium cannot close tab using middle click
  • FreeCAD cannot use middle click to navigate
  • Onlyoffice (flatpak) cannot use right click to show menu
Other Moonlight clients

PC

Moonlight adjusted settings

No

Moonlight adjusted settings (please complete the following information)

Nope.

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

Yes

Android version

Android 14 (One UI 6.1.1)

Device model

Samsung Z Fold5

Server PC OS version

Archlinux

Server PC GeForce Experience version

Sunshine v2025.122.141614

Server PC Nvidia GPU driver version

Intel in KVM

Server PC antivirus and firewall software

Nope

Screenshots

No response

Relevant log output

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.