Skip to content

android: Add the ability to edit touch controls overlay without opening a game#1979

Draft
ptyfyre wants to merge 2 commits intoazahar-emu:masterfrom
ptyfyre:nogame-edit
Draft

android: Add the ability to edit touch controls overlay without opening a game#1979
ptyfyre wants to merge 2 commits intoazahar-emu:masterfrom
ptyfyre:nogame-edit

Conversation

@ptyfyre
Copy link
Copy Markdown
Contributor

@ptyfyre ptyfyre commented Apr 1, 2026

Adds a new RunnableSettings which launches emulation in sort of a "gameless state" and allows editing the input overlay without having to actually open a game, the overlay then can be edited as usual and once the user is done, the emulator returns to the SettingsActivity

Also added a new input overlay settings section which has the RunnableSetting and a simple enable boolean for the overlay (reflects the emulationMenu one)
This can be extended later to possibly have more settings like an auto hide for the overlay and so on...

Due to the way the emulationActivity is launched from settingsActivity, the callbacks doesn't register unless the emulationActivity is firstly launched from MainActivity with fragment navigation, I'm removing it for now till i find a proper way to do it.
@DavidRGriswold
Copy link
Copy Markdown
Collaborator

Just tested this. Works well, but not having access to the menu when in edit mode means that you can't add/remove controls or change sizes. It should be fully featured before merging. Not sure the best way to do that other than perhaps re-implementing the side menu with only the overlay controls?

@ptyfyre
Copy link
Copy Markdown
Contributor Author

ptyfyre commented Apr 6, 2026

Just tested this. Works well, but not having access to the menu when in edit mode means that you can't add/remove controls or change sizes. It should be fully featured before merging. Not sure the best way to do that other than perhaps re-implementing the side menu with only the overlay controls?

I plan to fix that in the future with a pop-up menu when you click the buttons in this mode, but if this won't get merged until then, maybe it would be a wise idea to convert it to a draft.

I would prefer to have merged as an "Part 1" of sorts.

@ptyfyre ptyfyre marked this pull request as draft April 6, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants