moonlight-stream / moonlight-stream/moonlight-android

Feature Request: Accelerometer Mouse Control

Open
#999 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The software gamepad is challenging to use in some situation where you need fast precise movement.

My suggestion is a setting to use the accellerometer to control the phone accelerometer to make mouse movements. The obvious use case would be aiming in games. Some games like PUBG and also the steam deck use this style of aiming and it is a big improvement from simply using a software thumbsticks.

I think this would be fairly simple to implement and would make gaming with moonlight without a gamepad much more feasible and enjoyable with certain games. This would have the added benefit of letting your rest your hands on the action buttons without having to swap between right joystick and right trigger constantly with your thumb which is very slow and difficult to do precisely.

A couple suggestions which may or may not be necessary: a menu option to control sensitivity within moonlight so it can be configured seperately from default mouse/joystick speed. An optional software gamepad button that can be used to toggle accelerometer control in case leaving it on causes some mouse conflicts.

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.

Research direction

The issue does not name any files, tests, or entry points. Start by locating the Android software gamepad handling and accelerometer sensor integration, then determine how sensitivity and an optional toggle should fit the requested behavior. Done means accelerometer movement can control the mouse reliably without disrupting existing gamepad controls.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.