From b941bb12246145df824cf9f40bc09090dee9c1cb Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Fri, 4 Dec 2026 23:10:23 -0500 Subject: [PATCH] Clarify controller remapping and restore prompts --- .../com/droiddeck/launcher/ui/DrawerControls.kt | 8 ++++---- app/src/main/res/values/input_flow_strings.xml | 13 +++++++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/ui/DrawerControls.kt b/app/src/main/java/com/droiddeck/launcher/ui/DrawerControls.kt index 45d6fa5a7d..5233146d37 100644 --- a/app/src/main/java/com/droiddeck/launcher/ui/DrawerControls.kt +++ b/app/src/main/java/com/droiddeck/launcher/ui/DrawerControls.kt @@ -72,7 +72,7 @@ internal fun DrawerControlsGroup(host: MenuHost, a: DrawerActions, track: (Strin val physical = if (gameScope && gameKey != null && own?.parts?.containsKey(InputRole.PHYSICAL) == true) stringResource(R.string.flow_game_changes, library.gameChanges(a.desktop, gameKey, InputRole.PHYSICAL)) else profileLabel(context, active) - ActionRow(stringResource(R.string.flow_buttons), physical, stringResource(R.string.ctrl_edit), a.onEditButtons, + ActionRow(stringResource(R.string.flow_buttons), physical, stringResource(R.string.flow_remap), a.onEditButtons, modifier = track("input-buttons").testTag("input-edit-buttons")) a.onEditLayout?.let { edit -> val layoutName = if (a.oscMode == SessionPrefs.OSC_STEAM_TOUCH && a.steam) stringResource(R.string.osc_steam_layout) @@ -80,11 +80,11 @@ internal fun DrawerControlsGroup(host: MenuHost, a: DrawerActions, track: (Strin val configuration = androidx.compose.ui.platform.LocalConfiguration.current name + " · " + stringResource(if (configuration.screenHeightDp > configuration.screenWidthDp) R.string.flow_portrait else R.string.flow_landscape) } - ActionRow(stringResource(R.string.flow_layout), layoutName, stringResource(R.string.ctrl_edit), edit, + ActionRow(stringResource(R.string.flow_layout), layoutName, stringResource(R.string.touch_edit_layout), edit, modifier = track("input-layout").testTag("input-edit-layout")) } if (gameKey != null && own != null) ActionRow(stringResource(R.string.flow_clear_overrides), stringResource(R.string.flow_clear_overrides_hint, game.second), - stringResource(R.string.flow_clear), { clearing = gameKey to game.second }, modifier = track("input-game-reset").testTag("input-game-reset")) + stringResource(R.string.common_restore), { clearing = gameKey to game.second }, modifier = track("input-game-reset").testTag("input-game-reset")) ActionRow(stringResource(R.string.flow_all_settings), null, stringResource(R.string.ctrl_edit), a.onInputSettings, modifier = track("input-settings").testTag("input-profile-edit")) } @@ -92,7 +92,7 @@ internal fun DrawerControlsGroup(host: MenuHost, a: DrawerActions, track: (Strin title = { Text(stringResource(R.string.flow_clear_title, name)) }, text = { Text(stringResource(R.string.flow_clear_body, name)) }, confirmButton = { PadTextButton(onClick = { clearing = null; update { it.resetGame(key) } }, modifier = Modifier.testTag("input-game-reset-confirm")) { - Text(stringResource(R.string.flow_clear)) } }, + Text(stringResource(R.string.common_restore)) } }, dismissButton = { PadTextButton(onClick = { clearing = null }) { Text(stringResource(R.string.common_cancel)) } }) } failure?.let { message -> AlertDialog(onDismissRequest = { failure = null }, title = { Text(stringResource(R.string.input_save_failed)) }, text = { Text(message) }, confirmButton = { PadTextButton(onClick = { failure = null }) { Text(stringResource(R.string.common_ok)) } }) } diff --git a/app/src/main/res/values/input_flow_strings.xml b/app/src/main/res/values/input_flow_strings.xml index 320d5ef742..811b0e8ae3 100644 --- a/app/src/main/res/values/input_flow_strings.xml +++ b/app/src/main/res/values/input_flow_strings.xml @@ -1,8 +1,9 @@ - + Controls Changes for this game: %1$d - Buttons and sticks + Controller mappings + Remap On-screen layout All controller settings Touch controls @@ -57,15 +58,15 @@ Shared defaults Shared defaults (%1$s) Editing: %1$s - Clear this game’s overrides - %1$s goes back to the shared defaults + Restore this game’s controls to shared defaults + Only %1$s is affected Clear Portrait Landscape Landscape keeps its own positions. Portrait keeps its own positions. - Clear %1$s’s overrides? - %1$s goes back to the shared defaults. This can’t be undone. + Restore shared defaults for %1$s? + This clears %1$s’s controller remaps, portrait and landscape layouts, and any pinned profile. Shared defaults won’t change. Changes: %1$d %1$s uses a profile picked in the session menu. Choose Follow the default there to use the default again. Applies to every game.