android: Add the ability to edit touch controls overlay without opening a game#1979
android: Add the ability to edit touch controls overlay without opening a game#1979ptyfyre wants to merge 2 commits intoazahar-emu:masterfrom
Conversation
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.
|
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. |
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...