Gamepad UI: optional Switch Pro layout where A confirms #17

Open
opened 2026-11-29 21:19:09 +00:00 by eineath · 9 comments

Request: an optional Nintendo-style layout for the Switch Pro Controller, where A confirms and B cancels. Today the bottom button (B) confirms everywhere. The letters match the buttons, but Switch players expect A to confirm. Please keep the current layout as the default.

My setup: client 1.60.1.70334 (fresh download), Linux with GE-Proton, Pro Controller (057E:2009) over Bluetooth, PROTON_ENABLE_HIDRAW=0x057E/0x2009. The raw button numbers below were measured here and may differ on Windows, over USB or without HIDRAW.

1. Buttons: a device config (tested)

C_GamePad.SetConfig({
  configID = { vendorID = 0x057E, productID = 0x2009 },
  labelStyle = "Reverse",
  rawButtonMappings = {
    { rawIndex = 1, button = "PAD1" }, -- printed A (right)
    { rawIndex = 0, button = "PAD2" }, -- printed B (bottom)
    { rawIndex = 2, button = "PAD3" }, -- printed Y, unchanged
    { rawIndex = 3, button = "PAD4" }, -- printed X, unchanged
  },
  rawAxisMappings = {}, axisConfigs = {}, stickConfigs = {},
})
C_GamePad.ApplyConfigs()

Set once from chat with /run, it made A confirm and B cancel in game windows, menus and popups, and on the character and login screens. The client keeps the config between sessions. C_GamePad.DeleteConfig({vendorID = 0x057E, productID = 0x2009}) plus ApplyConfigs() undoes it.

2. Letters: three client interface files (not tested in game)

With the config alone, the prompts still show B where A now confirms. The art for the Reverse style needs PAD1 and PAD2 swapped:

File Lines Change
Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua 483–487, 495–499 GAMEPAD_FACE_BOTTOM gets the gamepad-switch-128x-face-a-* art, GAMEPAD_FACE_RIGHT gets face-b-*
Blizzard_GamepadActionBars/ActionBarButton.lua 81–82 empty hotbar slots: RIGHT_QUAD_RIGHT uses xbox-b-normal, RIGHT_QUAD_BOTTOM uses xbox-a-normal
Blizzard_SharedXML/SharedConstants.lua 132–133 text prompts: KEY_PAD1_REV uses Rev_A, KEY_PAD2_REV uses Rev_B
Full diff (14 lines changed, against build 70334)
diff --git a/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua b/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua
--- a/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua
+++ b/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua
@@ -78,8 +78,8 @@
 reverseTextureSet:SetEmptySlotSquareBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.LEFT_QUAD_BOTTOM, "gamepad-actionbar-squareslot-generic-dpaddown-normal");
 reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_LEFT, "gamepad-actionbar-circleslot-xbox-y-normal");
 reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_TOP, "gamepad-actionbar-circleslot-xbox-x-normal");
-reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_RIGHT, "gamepad-actionbar-circleslot-xbox-a-normal");
-reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_BOTTOM, "gamepad-actionbar-circleslot-xbox-b-normal");
+reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_RIGHT, "gamepad-actionbar-circleslot-xbox-b-normal");
+reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_BOTTOM, "gamepad-actionbar-circleslot-xbox-a-normal");
 
 local SHARED_AOE_TARGET_HIGHLIGHT_ATLAS = "gamepad-actionbar-targeting-overlayglow";
 local SHARED_CHANNEL_FILL_ATLAS = "gamepad-hud-actionbar-channel-fill";
diff --git a/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua b/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua
--- a/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua
+++ b/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua
@@ -480,11 +480,11 @@
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_TOP, InputIconTextureState.Active, "gamepad-switch-128x-face-x-selected");
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_TOP, InputIconTextureState.Disabled, "gamepad-switch-128x-face-x-disabled");
 
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Normal, "gamepad-switch-128x-face-b-normal");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Hover, "gamepad-switch-128x-face-b-hover");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Pressed, "gamepad-switch-128x-face-b-pressed");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Active, "gamepad-switch-128x-face-b-selected");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Disabled, "gamepad-switch-128x-face-b-disabled");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Normal, "gamepad-switch-128x-face-a-normal");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Hover, "gamepad-switch-128x-face-a-hover");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Pressed, "gamepad-switch-128x-face-a-pressed");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Active, "gamepad-switch-128x-face-a-selected");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Disabled, "gamepad-switch-128x-face-a-disabled");
 
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Normal, "gamepad-switch-128x-face-y-normal");
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Hover, "gamepad-switch-128x-face-y-hover");
@@ -492,11 +492,11 @@
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Active, "gamepad-switch-128x-face-y-selected");
 	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-y-disabled");
 
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Normal, "gamepad-switch-128x-face-a-normal");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Hover, "gamepad-switch-128x-face-a-hover");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Pressed, "gamepad-switch-128x-face-a-pressed");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Active, "gamepad-switch-128x-face-a-selected");
-	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-a-disabled");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Normal, "gamepad-switch-128x-face-b-normal");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Hover, "gamepad-switch-128x-face-b-hover");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Pressed, "gamepad-switch-128x-face-b-pressed");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Active, "gamepad-switch-128x-face-b-selected");
+	reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-b-disabled");
 
 	reverse:SetInputIconTextureForKey(GAMEPAD_STICK_LEFT, InputIconTextureState.Normal, "gamepad-switch-128x-stick-l-normal");
 	reverse:SetInputIconTextureForKey(GAMEPAD_STICK_LEFT, InputIconTextureState.Hover, "gamepad-switch-128x-stick-l-hover");
diff --git a/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua b/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua
--- a/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua
+++ b/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua
@@ -129,8 +129,8 @@
 SetGamepadBindingStrings("KEY_PADSYSTEM_SHP",	"KEY_ABBR_PADSYSTEM_SHP",	"Shp_System");
 SetGamepadBindingStrings("KEY_PADSOCIAL_SHP",	"KEY_ABBR_PADSOCIAL_SHP",	"Shp_Share");
 -- "Reverse" label style specializations
-SetGamepadBindingStrings("KEY_PAD1_REV",		"KEY_ABBR_PAD1_REV",		"Rev_B");
-SetGamepadBindingStrings("KEY_PAD2_REV",		"KEY_ABBR_PAD2_REV",		"Rev_A");
+SetGamepadBindingStrings("KEY_PAD1_REV",		"KEY_ABBR_PAD1_REV",		"Rev_A");
+SetGamepadBindingStrings("KEY_PAD2_REV",		"KEY_ABBR_PAD2_REV",		"Rev_B");
 SetGamepadBindingStrings("KEY_PAD3_REV",		"KEY_ABBR_PAD3_REV",		"Rev_Y");
 SetGamepadBindingStrings("KEY_PAD4_REV",		"KEY_ABBR_PAD4_REV",		"Rev_X");
 SetGamepadBindingStrings("KEY_PADLSHOULDER_REV","KEY_ABBR_PADLSHOULDER_REV","Rev_LShoulder");

I checked the InputIconTexture.lua edit by running the game's own lookup on it: PAD1 gets A art and PAD2 gets B art in all states and both shadow variants, while X and Y stay the same. I could not try the files in game: the client ignored loose copies placed under _classic_beta_/Interface/AddOns, so they need to go in through a content step. Blizzard_SharedXML also loads on the login screen, so the letters there would follow.

For the option to be optional, the art swap would have to switch with the config, not be fixed in the files. One way is to pick the PAD1 and PAD2 letters at runtime when the Pro Controller config has PAD1 on raw button 1.

What changes for the player

  • Everything on PAD1 and PAD2 moves together, so in the world A jumps.
  • The on-screen button diamond keeps its slot positions, so it shows A at the bottom and B on the right, unlike the controller.

Also: HIDRAW by default in play-linux.sh

PROTON_ENABLE_HIDRAW is a Proton setting, so it can't live in the game files. One line next to the other exports would make it the default while letting players override it:

export PROTON_ENABLE_HIDRAW="${PROTON_ENABLE_HIDRAW-0x057E/0x2009}"

Over Bluetooth, players may also need a udev rule so the hidraw device is readable:

KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0660", TAG+="uaccess"
**Request:** an optional Nintendo-style layout for the Switch Pro Controller, where **A confirms and B cancels**. Today the bottom button (B) confirms everywhere. The letters match the buttons, but Switch players expect A to confirm. Please keep the current layout as the default. **My setup:** client 1.60.1.70334 (fresh download), Linux with GE-Proton, Pro Controller (`057E:2009`) over Bluetooth, `PROTON_ENABLE_HIDRAW=0x057E/0x2009`. The raw button numbers below were measured here and may differ on Windows, over USB or without HIDRAW. **1. Buttons: a device config (tested)** ```lua C_GamePad.SetConfig({ configID = { vendorID = 0x057E, productID = 0x2009 }, labelStyle = "Reverse", rawButtonMappings = { { rawIndex = 1, button = "PAD1" }, -- printed A (right) { rawIndex = 0, button = "PAD2" }, -- printed B (bottom) { rawIndex = 2, button = "PAD3" }, -- printed Y, unchanged { rawIndex = 3, button = "PAD4" }, -- printed X, unchanged }, rawAxisMappings = {}, axisConfigs = {}, stickConfigs = {}, }) C_GamePad.ApplyConfigs() ``` Set once from chat with `/run`, it made A confirm and B cancel in game windows, menus and popups, and on the character and login screens. The client keeps the config between sessions. `C_GamePad.DeleteConfig({vendorID = 0x057E, productID = 0x2009})` plus `ApplyConfigs()` undoes it. **2. Letters: three client interface files (not tested in game)** With the config alone, the prompts still show B where A now confirms. The art for the `Reverse` style needs PAD1 and PAD2 swapped: | File | Lines | Change | |---|---|---| | `Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua` | 483–487, 495–499 | `GAMEPAD_FACE_BOTTOM` gets the `gamepad-switch-128x-face-a-*` art, `GAMEPAD_FACE_RIGHT` gets `face-b-*` | | `Blizzard_GamepadActionBars/ActionBarButton.lua` | 81–82 | empty hotbar slots: `RIGHT_QUAD_RIGHT` uses `xbox-b-normal`, `RIGHT_QUAD_BOTTOM` uses `xbox-a-normal` | | `Blizzard_SharedXML/SharedConstants.lua` | 132–133 | text prompts: `KEY_PAD1_REV` uses `Rev_A`, `KEY_PAD2_REV` uses `Rev_B` | <details><summary>Full diff (14 lines changed, against build 70334)</summary> ```diff diff --git a/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua b/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua --- a/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua +++ b/Interface/AddOns/Blizzard_GamepadActionBars/ActionBarButton.lua @@ -78,8 +78,8 @@ reverseTextureSet:SetEmptySlotSquareBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.LEFT_QUAD_BOTTOM, "gamepad-actionbar-squareslot-generic-dpaddown-normal"); reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_LEFT, "gamepad-actionbar-circleslot-xbox-y-normal"); reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_TOP, "gamepad-actionbar-circleslot-xbox-x-normal"); -reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_RIGHT, "gamepad-actionbar-circleslot-xbox-a-normal"); -reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_BOTTOM, "gamepad-actionbar-circleslot-xbox-b-normal"); +reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_RIGHT, "gamepad-actionbar-circleslot-xbox-b-normal"); +reverseTextureSet:SetEmptySlotCircleBackgroundTextureByIndex(GAMEPAD_ACTION_BAR_BUTTON_INDICES.RIGHT_QUAD_BOTTOM, "gamepad-actionbar-circleslot-xbox-a-normal"); local SHARED_AOE_TARGET_HIGHLIGHT_ATLAS = "gamepad-actionbar-targeting-overlayglow"; local SHARED_CHANNEL_FILL_ATLAS = "gamepad-hud-actionbar-channel-fill"; diff --git a/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua b/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua --- a/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua +++ b/Interface/AddOns/Blizzard_SharedXML/Shared/InputIcons/InputIconTexture.lua @@ -480,11 +480,11 @@ reverse:SetInputIconTextureForKey(GAMEPAD_FACE_TOP, InputIconTextureState.Active, "gamepad-switch-128x-face-x-selected"); reverse:SetInputIconTextureForKey(GAMEPAD_FACE_TOP, InputIconTextureState.Disabled, "gamepad-switch-128x-face-x-disabled"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Normal, "gamepad-switch-128x-face-b-normal"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Hover, "gamepad-switch-128x-face-b-hover"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Pressed, "gamepad-switch-128x-face-b-pressed"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Active, "gamepad-switch-128x-face-b-selected"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Disabled, "gamepad-switch-128x-face-b-disabled"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Normal, "gamepad-switch-128x-face-a-normal"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Hover, "gamepad-switch-128x-face-a-hover"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Pressed, "gamepad-switch-128x-face-a-pressed"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Active, "gamepad-switch-128x-face-a-selected"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_BOTTOM, InputIconTextureState.Disabled, "gamepad-switch-128x-face-a-disabled"); reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Normal, "gamepad-switch-128x-face-y-normal"); reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Hover, "gamepad-switch-128x-face-y-hover"); @@ -492,11 +492,11 @@ reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Active, "gamepad-switch-128x-face-y-selected"); reverse:SetInputIconTextureForKey(GAMEPAD_FACE_LEFT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-y-disabled"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Normal, "gamepad-switch-128x-face-a-normal"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Hover, "gamepad-switch-128x-face-a-hover"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Pressed, "gamepad-switch-128x-face-a-pressed"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Active, "gamepad-switch-128x-face-a-selected"); - reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-a-disabled"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Normal, "gamepad-switch-128x-face-b-normal"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Hover, "gamepad-switch-128x-face-b-hover"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Pressed, "gamepad-switch-128x-face-b-pressed"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Active, "gamepad-switch-128x-face-b-selected"); + reverse:SetInputIconTextureForKey(GAMEPAD_FACE_RIGHT, InputIconTextureState.Disabled, "gamepad-switch-128x-face-b-disabled"); reverse:SetInputIconTextureForKey(GAMEPAD_STICK_LEFT, InputIconTextureState.Normal, "gamepad-switch-128x-stick-l-normal"); reverse:SetInputIconTextureForKey(GAMEPAD_STICK_LEFT, InputIconTextureState.Hover, "gamepad-switch-128x-stick-l-hover"); diff --git a/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua b/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua --- a/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua +++ b/Interface/AddOns/Blizzard_SharedXML/SharedConstants.lua @@ -129,8 +129,8 @@ SetGamepadBindingStrings("KEY_PADSYSTEM_SHP", "KEY_ABBR_PADSYSTEM_SHP", "Shp_System"); SetGamepadBindingStrings("KEY_PADSOCIAL_SHP", "KEY_ABBR_PADSOCIAL_SHP", "Shp_Share"); -- "Reverse" label style specializations -SetGamepadBindingStrings("KEY_PAD1_REV", "KEY_ABBR_PAD1_REV", "Rev_B"); -SetGamepadBindingStrings("KEY_PAD2_REV", "KEY_ABBR_PAD2_REV", "Rev_A"); +SetGamepadBindingStrings("KEY_PAD1_REV", "KEY_ABBR_PAD1_REV", "Rev_A"); +SetGamepadBindingStrings("KEY_PAD2_REV", "KEY_ABBR_PAD2_REV", "Rev_B"); SetGamepadBindingStrings("KEY_PAD3_REV", "KEY_ABBR_PAD3_REV", "Rev_Y"); SetGamepadBindingStrings("KEY_PAD4_REV", "KEY_ABBR_PAD4_REV", "Rev_X"); SetGamepadBindingStrings("KEY_PADLSHOULDER_REV","KEY_ABBR_PADLSHOULDER_REV","Rev_LShoulder"); ``` </details> I checked the `InputIconTexture.lua` edit by running the game's own lookup on it: PAD1 gets A art and PAD2 gets B art in all states and both shadow variants, while X and Y stay the same. I could not try the files in game: the client ignored loose copies placed under `_classic_beta_/Interface/AddOns`, so they need to go in through a content step. `Blizzard_SharedXML` also loads on the login screen, so the letters there would follow. For the option to be optional, the art swap would have to switch with the config, not be fixed in the files. One way is to pick the PAD1 and PAD2 letters at runtime when the Pro Controller config has PAD1 on raw button 1. **What changes for the player** - Everything on PAD1 and PAD2 moves together, so in the world A jumps. - The on-screen button diamond keeps its slot positions, so it shows A at the bottom and B on the right, unlike the controller. **Also: HIDRAW by default in `play-linux.sh`** `PROTON_ENABLE_HIDRAW` is a Proton setting, so it can't live in the game files. One line next to the other exports would make it the default while letting players override it: ```bash export PROTON_ENABLE_HIDRAW="${PROTON_ENABLE_HIDRAW-0x057E/0x2009}" ``` Over Bluetooth, players may also need a udev rule so the hidraw device is readable: ``` KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0660", TAG+="uaccess" ```
Owner

Thanks, this is clear and the measured raw indices help. We'll add it as an opt-in option (a checkbox in the Gamepad settings), and the default layout stays as it is. The button-letter swap will apply only while the option is on, because a Switch Pro without the config also uses the Reverse label style. I'll comment here when it is on the patch channel.

Thanks, this is clear and the measured raw indices help. We'll add it as an opt-in option (a checkbox in the Gamepad settings), and the default layout stays as it is. The button-letter swap will apply only while the option is on, because a Switch Pro without the config also uses the Reverse label style. I'll comment here when it is on the patch channel.
Owner

Shipped in today's update (content step b3751e49): the Gamepad settings now have an optional Switch Pro layout, where A confirms and the button labels match the Switch Pro controller. The default layout is unchanged. Run OctoUpdater (or restart the client) to get it, tick the option, and let us know here if it works for you; we will close the issue once you confirm.

Shipped in today's update (content step b3751e49): the Gamepad settings now have an optional Switch Pro layout, where A confirms and the button labels match the Switch Pro controller. The default layout is unchanged. Run OctoUpdater (or restart the client) to get it, tick the option, and let us know here if it works for you; we will close the issue once you confirm.
Author

Thanks for shipping it so quickly. After the update, with Nintendo layout: A confirms ticked, half of it works here:

  • Buttons: work. A confirms and B cancels.
  • Letters: unchanged. Prompts still show B on confirm and A on cancel (the abandon-quest popup shows "B Yes / A No", the Game Menu shows "B Select / A Return to Game", and chat shows "B Send / A Back"). Unticking and reticking the option, then /reload, made no difference, and the character select screen shows the same wrong letters.

From chat, with the option ticked:

/run print("set",InputDeviceIconSetManager:GetActiveInputDeviceIconSet()) local t=InputIconTextureSetUtility.GetActiveInputIconButtonTextures("PAD1",InputDeviceIconVariant.Standard) print("PAD1 art",t and t[1])
-> set Reverse
-> PAD1 art gamepad-switch-128x-face-b-normal

/run print("text",KEY_PAD1_REV,KEY_ABBR_PAD1_REV,KEY_PAD2_REV,KEY_ABBR_PAD2_REV)
-> B, B, A, A (as icons)

So the Reverse style is active, but both the icon table and the KEY_*_REV text still give PAD1 the B letter. It looks like the letter swap never ran or was overwritten, while the button config did apply. One guess, not checked: if the swap is decided when Blizzard_SharedXML loads, the option may not be readable yet at that point.

Setup: client 1.60.1.70334 with content b3751e49, Linux with GE-Proton, Pro Controller over Bluetooth with PROTON_ENABLE_HIDRAW=0x057E/0x2009, and no controller add-ons installed. I'm happy to run any other check you want.

Thanks for shipping it so quickly. After the update, with **Nintendo layout: A confirms** ticked, half of it works here: - **Buttons: work.** A confirms and B cancels. - **Letters: unchanged.** Prompts still show B on confirm and A on cancel (the abandon-quest popup shows "B Yes / A No", the Game Menu shows "B Select / A Return to Game", and chat shows "B Send / A Back"). Unticking and reticking the option, then `/reload`, made no difference, and the character select screen shows the same wrong letters. From chat, with the option ticked: ``` /run print("set",InputDeviceIconSetManager:GetActiveInputDeviceIconSet()) local t=InputIconTextureSetUtility.GetActiveInputIconButtonTextures("PAD1",InputDeviceIconVariant.Standard) print("PAD1 art",t and t[1]) -> set Reverse -> PAD1 art gamepad-switch-128x-face-b-normal /run print("text",KEY_PAD1_REV,KEY_ABBR_PAD1_REV,KEY_PAD2_REV,KEY_ABBR_PAD2_REV) -> B, B, A, A (as icons) ``` So the Reverse style is active, but both the icon table and the `KEY_*_REV` text still give PAD1 the B letter. It looks like the letter swap never ran or was overwritten, while the button config did apply. One guess, not checked: if the swap is decided when `Blizzard_SharedXML` loads, the option may not be readable yet at that point. Setup: client 1.60.1.70334 with `content b3751e49`, Linux with GE-Proton, Pro Controller over Bluetooth with `PROTON_ENABLE_HIDRAW=0x057E/0x2009`, and no controller add-ons installed. I'm happy to run any other check you want.
Owner

Thanks for testing it so carefully. You're right: the button swap works, but the on-screen letters still use the default labels. We found the likely cause: the letter swap checks the active controller in a different way from the button mapping, so on your setup it doesn't turn on. A fix is being made now. We'll post here when it's in an update. No need to change anything on your side in the meantime.

Thanks for testing it so carefully. You're right: the button swap works, but the on-screen letters still use the default labels. We found the likely cause: the letter swap checks the active controller in a different way from the button mapping, so on your setup it doesn't turn on. A fix is being made now. We'll post here when it's in an update. No need to change anything on your side in the meantime.
Author

Confirmed: after the latest update from OctoUpdater, with Nintendo layout: A confirms ticked, A shows on OK/Confirm and B on Back/Cancel, and the buttons do what the letters say. Thanks for the quick fix.

One follow-up, if you think it's worth doing: the hotbar diamond keeps the Xbox positions, so A (on the right of the controller) fires the bottom slot and B (at the bottom) fires the right slot. With the option on, could those two slots trade places on screen, so the slot A fires is drawn on the right and the one B fires at the bottom? Only where they're drawn would change; jump stays on A. In the stock files, the bottom slot is GAMEPAD_FACE_BOTTOM and the right slot is GAMEPAD_FACE_RIGHT in ActionBarTemplates.xml (main bar around lines 280–315, pet bar around 508–543). Since it's an option, they would need moving in code while it's ticked, outside combat. I haven't tested this.

The letter fix itself works, so close this whenever suits you, or keep it open for the slot positions.

Confirmed: after the latest update from OctoUpdater, with **Nintendo layout: A confirms** ticked, A shows on OK/Confirm and B on Back/Cancel, and the buttons do what the letters say. Thanks for the quick fix. One follow-up, if you think it's worth doing: the hotbar diamond keeps the Xbox positions, so A (on the right of the controller) fires the **bottom** slot and B (at the bottom) fires the **right** slot. With the option on, could those two slots trade places on screen, so the slot A fires is drawn on the right and the one B fires at the bottom? Only where they're drawn would change; jump stays on A. In the stock files, the bottom slot is `GAMEPAD_FACE_BOTTOM` and the right slot is `GAMEPAD_FACE_RIGHT` in `ActionBarTemplates.xml` (main bar around lines 280–315, pet bar around 508–543). Since it's an option, they would need moving in code while it's ticked, outside combat. I haven't tested this. The letter fix itself works, so close this whenever suits you, or keep it open for the slot positions.
Owner

Thanks for confirming the letter fix. Good idea on the diamond: with the Nintendo option ticked we will draw the A-fired slot on the right and the B-fired slot at the bottom (main and pet bar, changed only out of combat; bindings and jump stay as they are). Keeping this open until that ships and you confirm.

Thanks for confirming the letter fix. Good idea on the diamond: with the Nintendo option ticked we will draw the A-fired slot on the right and the B-fired slot at the bottom (main and pet bar, changed only out of combat; bindings and jump stay as they are). Keeping this open until that ships and you confirm.
Owner

The diamond swap is out now in the OctoUpdater (update 292e9896). With Nintendo layout: A confirms ticked, the main and pet action-bar diamonds draw the A-fired slot on the right and the B-fired slot at the bottom; bindings and jump are unchanged, and the layout only changes out of combat. We checked the geometry and the toggle on our side, but without a physical Switch Pro controller, so please confirm on yours when you can.

The diamond swap is out now in the OctoUpdater (update 292e9896). With **Nintendo layout: A confirms** ticked, the main and pet action-bar diamonds draw the A-fired slot on the right and the B-fired slot at the bottom; bindings and jump are unchanged, and the layout only changes out of combat. We checked the geometry and the toggle on our side, but without a physical Switch Pro controller, so please confirm on yours when you can.
Author

Confirmed: after the latest update, with Nintendo layout: A confirms ticked, the hotbar diamond now matches the controller: the slot A fires (jump) is drawn on the right, and the one B fires is at the bottom. Together with the letter fix, everything I asked for here works. Thanks, fine to close.

Confirmed: after the latest update, with Nintendo layout: A confirms ticked, the hotbar diamond now matches the controller: the slot A fires (jump) is drawn on the right, and the one B fires is at the bottom. Together with the letter fix, everything I asked for here works. Thanks, fine to close.
Author

One more spot: with Nintendo layout: A confirms ticked, the face-button diamonds for the modifier bars don't all match. ZL and ZL + ZR have A on the right and B at the bottom, like the controller. ZR still uses the old positions: holding ZR, A fires the slot drawn at the bottom and B fires the one on the right, and the letters show the same. So its letters and actions agree with each other; only its slots weren't moved. Could the ZR diamond get the same slot swap as the main bar and the other two? (Screenshot attached: left diamond ZL, middle ZL + ZR, right ZR.)

One more spot: with **Nintendo layout: A confirms** ticked, the face-button diamonds for the modifier bars don't all match. **ZL** and **ZL + ZR** have A on the right and B at the bottom, like the controller. **ZR** still uses the old positions: holding ZR, A fires the slot drawn at the **bottom** and B fires the one on the **right**, and the letters show the same. So its letters and actions agree with each other; only its slots weren't moved. Could the ZR diamond get the same slot swap as the main bar and the other two? (Screenshot attached: left diamond ZL, middle ZL + ZR, right ZR.)
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: praxis/WoW-Hybrid-gateway#17