Skip to content

Add sensitivity slider for mouse emulation with controller#529

Open
mevouc wants to merge 4 commits intoClassicOldSong:moonlight-noirfrom
mevouc:feature/mouse-emulation-sensitivity
Open

Add sensitivity slider for mouse emulation with controller#529
mevouc wants to merge 4 commits intoClassicOldSong:moonlight-noirfrom
mevouc:feature/mouse-emulation-sensitivity

Conversation

@mevouc
Copy link
Copy Markdown

@mevouc mevouc commented Mar 3, 2026

Added

  1. A new setting "Mouse emulation sensitivity" under "Mouse emulation via gamepad" and "Use an analog stick to scroll"
    • Greyed out when "Mouse emulation via gamepad" is un-checked
    • Open a slider to select user preferred mouse sensitivity using emulation with gamepad. Goes from 20 to 400 (default 100, step 10)
  2. Localization
    • English
    • French

Screenshots

Settings when "Mouse emulation via gamepad" is checked:
image

Settings when "Mouse emulation via gamepad" is un-checked:
image

Slider + default value:
image

Slider + minimal value:
image

Slider + max value:
image

Menu view with a phone + French:
image

Slider view with a phone + French:
image

Not impacted but related

Pressing X

There was an existing feature to "control" the speed of the cursor when using mouse emulation, by pressing button X.

This feature remains untouched, because it's very buggy and not reliable:

  • you can't go in straight lines: when pressing X, you're forced to go in diagonal
  • you can increase the speed by pressing Y, but there's no UI feedback about it and it can go crazy (255 steps).

I'm considering removing this other speed feature in a separate PR, because it's 1. buggy, and 2. very badly written (hardcoded values, no zero value handling).

Scrolling speed

I did not add a slider for the scrolling speed (when using the other analog stick of the gamepad), just because I find it fine and less anoying than the cursor speed. But it's up to suggestion for consistency.

Related to #452

@ClassicOldSong
Copy link
Copy Markdown
Owner

Thank you very much for the PR, but the locale part I prefer only adding English and parts you're sure about. Translations should use a separate pass since lots of other languages are already missing loads of translations.

@mevouc
Copy link
Copy Markdown
Author

mevouc commented Mar 4, 2026

Alright, I understand I was unsure about that part anyway. Thanks for the feedback.

I've added a commit to remove all languages except English and French.

@mevouc
Copy link
Copy Markdown
Author

mevouc commented Mar 16, 2026

Hi @ClassicOldSong. Were you able to take a new look at this?

@ClassicOldSong
Copy link
Copy Markdown
Owner

Definitely, being busy recently, will take a look soon!

@mevouc
Copy link
Copy Markdown
Author

mevouc commented Mar 17, 2026

No problem. I don't want to spam you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants