libretro / libretro/RetroArch

[Android] Don't register analog stick movement on first touch

Open
#16,403 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Currently RetroArch registers the analog stick movement as soon as you place your finger in its hitbox area. This behaviour causes issues in many games, especially the ones where precise analog stick movements are required.

The analogue sticks in a touchscreen gamepad overlay should work as shown on the site I linked below (even remaining in a static position as it is now, but the first touch should only allow to "take control" of the analog stick without registering any movement):

https://developer.playcanvas.com/tutorials/touch-joypad/

Contributor guide

Open the contributing guide

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

Start by comparing the requested behavior with the linked PlayCanvas touch joypad tutorial, then locate RetroArch's Android touchscreen gamepad overlay input handling. The change is complete when the first touch claims control of an analog stick without registering movement, while subsequent movement still works as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.