libretro / libretro/RetroArch

Overlay control buttons cannot be placed in the horizontal center of the screen.

Open
#18,082 3 comments 0 reactions 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

Is there an existing issue for this?
  • This is a bug in RetroArch frontend
  • I have searched the existing issues
Description

Placing the overlay controls in the horizontal center of the screen is impossible without them being too far down or too far up.

I used the RetroPad Editor to generate the config files. This does not appear to be a bug with the RetroPad Editor.

Expected behavior

I would expect to be able to place the controls anywhere on the screen.

Steps to reproduce the bug

Use these two config files:

On my device, they go in /storage/emulated/0/RetroArch/overlays.

The first config file will show an obvious gap in the D-pad. The second config file will be much closer but still be off. The difference between the two files is one thousandth of a decimal number!

Using the RetroPad Editor with these configs, you'll see how high I had to place the the down button. You must use the config files in the app itself to see the true location of the down button. Given the tiny difference between the config files, this is not an issue with the RetroPad Editor.

Version/Commit

1.21.0 (Git 54af661)

Bisect Results

(Untested on older versions.)

Present in the nightly version

I don't know

Platform & operating system

Android 14

Affected Cores

No response

Environment information
  • Pixel 6
  • Resolution: 2400 x 1080 pixels
Relevant log output

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

Reproduce on Android 14 using the “too far” and “close enough” overlay configs linked in the issue, placed under /storage/emulated/0/RetroArch/overlays. Trace the overlay-control placement handling from those configs and compare the one-thousandth coordinate difference. Done means controls can be positioned at the horizontal screen center without the D-pad gap or vertical offset.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.