Repository navigation
Conversation
With the controller type on Xbox One, the host now gets the Switch's face buttons by label: A is the Xbox A, B is B, X is X and Y is Y, so the button a game names is the one with that letter in hand. Before, the wire went by position, and a game asking for A wanted the button labelled B. Only what reaches the host turns. The shortcuts, the dial and the console's menus keep reading the pad by position, so Minus + A and A to confirm stay where they were. Nintendo types already agree by label, and PlayStation types have shapes, so they stay positional. `nx.face_layout: "position"` in the settings document keeps the Xbox type positional. No screen sets it; the tester manual says how to add it by hand. Closes #34 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Closing this one. Thanks for building it; here is the reasoning. Face buttons stay by position on the wire for every controller type. The client forwards what the pad does, as if it were plugged into the host. With the type on Xbox One the host has an Xbox pad, so the east button is B there, the same as holding a real one. Making Xbox the one type that goes by label would also flip the buttons for everyone who already plays on it. #34 asked for position to stay the default. The other reason is the switch itself. With Automatic, Switch Pro or Joy-Con pair the host's pad is a Nintendo one and the letters already agree. For a game that needs an Xbox pad, the swap belongs on the host, where Steam Input can do it per game. None of this is about the code, which was tidy and well tested. |
Closes #34.
With the controller type on Xbox One, the host gets the Switch's face buttons by label:
Every other type is unchanged: Automatic, Switch Pro and Joy-Con pair already agree by label, and the PlayStation types have shapes, so position is the only rule there.
Only what reaches the host turns. The shortcuts (Minus + A, the exit hold), the dial and the console's menus keep reading the pad by position. Changing the type from the dial mid-stream lets go of held buttons by the old layout and presses by the new.
"nx.face_layout": "position"in thesettingsblock ofsettings.jsonkeeps the Xbox type positional. No screen sets it, since the settings screen comes from the main repository;docs/tester.mdsays how to add it by hand. The stream logsface layout: Autoorface layout: Position.Checked
cargo test --workspace,cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkpass in the dev box.positionturning it off, Automatic staying positional, the dial still opening on Minus + A, and a mid-stream replug.