feat(input): describe on-screen layout choices, scope per-game layouts and delete unused ones (#2939)

* feat(input): describe on-screen layout choices, scope per-game layouts and delete unused ones

- The layout menu says what each choice is: "DroidDeck controls" work in
  every game and are edited here; "Steam touch controls" are each game's
  controls from Steam, for Steam games only.
- Layouts made with "+ New for <game>" (or "Just this game") are listed
  only for that game, marked "Just for <game>". Older ones are recognised
  by carrying the name of the game that draws them.
- Saved layouts nothing uses get a delete button in the menu. Deleting one
  also removes a profile that still uses it but can no longer be chosen,
  such as copies made by the old profile screen.
- A game set to Steam touch controls that runs without Steam shows a note
  under Layout instead of silently using the default.

* fix(input): a layout the built-in profile still lists can be deleted once another is chosen

Applying a layout used to write it into the Game profile; choosing another
now goes on top, so the profile's part is no longer drawn. Only parts a mode
actually draws count as in use, and deleting points the built-in profile
back at the stock layout.
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-20 11:54:59 -05:00
1 parent 83dc5f37e9
commit d5c83eae15
9 files changed
+304 -26

No files matched your search

+7 -2
View File
@@ -326,8 +326,13 @@
<string name="mode_osc_note">Auto shows the controls when no controller is connected.</string>
<string name="osc_group_for">On-screen controls · %1$s</string>
<string name="osc_layout">Layout</string>
<string name="osc_layout_gamepad">Gamepad</string>
<string name="osc_layout_steam">Steam layout</string>
<string name="osc_layout_gamepad">DroidDeck controls</string>
<string name="osc_layout_gamepad_detail">Works in every game. Edit them here.</string>
<string name="osc_layout_steam">Steam touch controls</string>
<string name="osc_layout_steam_detail">Each game\'s touch controls from Steam. Steam games only; edit them in Steam.</string>
<string name="osc_layout_steam_unavailable">Steam touch controls only work in games launched through Steam, so these are shown instead.</string>
<string name="osc_layout_detail_game">Just for %1$s</string>
<string name="osc_delete_layout">Delete layout</string>
<string name="osc_edit_layout">Edit layout</string>
<string name="osc_show">Show</string>
<string name="osc_rear_buttons">Rear buttons</string>